Bug 37622: Remove location from 2 preservation 'update' routes
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1a2a7e4619)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
3c55573d4f
commit
428ea2baf6
|
|
@ -154,7 +154,6 @@ sub update {
|
|||
$processing->set_from_api($body)->store;
|
||||
$processing->attributes($attributes);
|
||||
|
||||
$c->res->headers->location( $c->req->url->to_string . '/' . $processing->processing_id );
|
||||
return $c->render(
|
||||
status => 200,
|
||||
openapi => $c->objects->to_api($processing),
|
||||
|
|
|
|||
|
|
@ -151,7 +151,6 @@ sub update {
|
|||
|
||||
$train->set_from_api($body)->store;
|
||||
|
||||
$c->res->headers->location( $c->req->url->to_string . '/' . $train->train_id );
|
||||
return $c->render(
|
||||
status => 200,
|
||||
openapi => $c->objects->to_api($train),
|
||||
|
|
|
|||
Loading…
Reference in New Issue