From 7db53f2275005e67e4a8b07cecc5f29496b450f7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 24 May 2023 13:16:14 +0200 Subject: [PATCH] Bug 33817: Prevent item bundle that is checked out to be modified While an item bundle is checked out, we don't want any items to be added or removed from the bundle. To test: * Create a record with LDR Pos. 7 = c * Add an item for your bundle * Add one or more existing items from other records to the bundle * Check out the bundle item * Verify it appears correctly on the patron account * Verify you can still add/remove items from the bundle * Apply patch set * Verify that the add/remove links are now disabled (greyed out) Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 8cb2dd4e3077f95528ffffaa4a825aae314d034f) Signed-off-by: Martin Renvoize (cherry picked from commit a29fec1b4e9de007c7a833cea3df788c3e5cac29) Signed-off-by: Matt Blenkinsop --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index ef6e9e32d9..24c26aefd7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -369,7 +369,8 @@ [% FOREACH item IN items %] - + [% SET date_due = item.object.checkout.date_due %] + [% IF (StaffDetailItemSelection) %] @@ -464,7 +465,7 @@ [% END %] [% INCLUDE 'patron-title.inc' patron=item.checkout.patron hide_patron_infos_if_needed=1 %] [% END %] - : due [% item.checkout.date_due | $KohaDates as_due_date => 1 %] + : due [% date_due | $KohaDates as_due_date => 1 %] [% ELSIF ( item.transfer ) %] [% IF (item.transfer.datesent) %] -- 2.39.5