View | Details | Raw Unified | Return to bug 37622
Collapse All | Expand All

(-)a/Koha/REST/V1/Preservation/Processings.pm (-1 lines)
Lines 154-160 sub update { Link Here
154
                $processing->set_from_api($body)->store;
154
                $processing->set_from_api($body)->store;
155
                $processing->attributes($attributes);
155
                $processing->attributes($attributes);
156
156
157
                $c->res->headers->location( $c->req->url->to_string . '/' . $processing->processing_id );
158
                return $c->render(
157
                return $c->render(
159
                    status  => 200,
158
                    status  => 200,
160
                    openapi => $c->objects->to_api($processing),
159
                    openapi => $c->objects->to_api($processing),
(-)a/Koha/REST/V1/Preservation/Trains.pm (-2 lines)
Lines 151-157 sub update { Link Here
151
151
152
                $train->set_from_api($body)->store;
152
                $train->set_from_api($body)->store;
153
153
154
                $c->res->headers->location( $c->req->url->to_string . '/' . $train->train_id );
155
                return $c->render(
154
                return $c->render(
156
                    status  => 200,
155
                    status  => 200,
157
                    openapi => $c->objects->to_api($train),
156
                    openapi => $c->objects->to_api($train),
158
- 

Return to bug 37622