From fc32e7876cc5236bb0eda1a9e663b28e9c8110ae Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 13 Oct 2021 11:40:31 +0200 Subject: [PATCH] Bug 21932: Fix REST API mapping It seems correct to not let third-party apps bypass the expiration date settings and so let them set patron_expiration_date but the calculated expirationdate. --- Koha/Hold.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Hold.pm b/Koha/Hold.pm index df18fa8bd71..f8de1519a6c 100644 --- a/Koha/Hold.pm +++ b/Koha/Hold.pm @@ -669,7 +669,7 @@ sub to_api_mapping { found => 'status', itemnumber => 'item_id', waitingdate => 'waiting_date', - expirationdate => 'expiration_date', + patron_expiration_date => 'expiration_date', lowestPriority => 'lowest_priority', suspend => 'suspended', suspend_until => 'suspended_until', -- 2.25.1