From 428ea2baf6d0221ac0733778531a8a86663b8465 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 15 Sep 2025 10:41:49 +0200 Subject: [PATCH] Bug 37622: Remove location from 2 preservation 'update' routes Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize Signed-off-by: Lucas Gass (cherry picked from commit 1a2a7e461971006acff48641d87793facc841295) Signed-off-by: Paul Derscheid --- Koha/REST/V1/Preservation/Processings.pm | 1 - Koha/REST/V1/Preservation/Trains.pm | 1 - 2 files changed, 2 deletions(-) diff --git a/Koha/REST/V1/Preservation/Processings.pm b/Koha/REST/V1/Preservation/Processings.pm index e85ac7ee69..d3b3b0a9bc 100644 --- a/Koha/REST/V1/Preservation/Processings.pm +++ b/Koha/REST/V1/Preservation/Processings.pm @@ -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), diff --git a/Koha/REST/V1/Preservation/Trains.pm b/Koha/REST/V1/Preservation/Trains.pm index 4c5107b202..a008ddb039 100644 --- a/Koha/REST/V1/Preservation/Trains.pm +++ b/Koha/REST/V1/Preservation/Trains.pm @@ -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),