From 8cb2dd4e3077f95528ffffaa4a825aae314d034f 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 --- 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 9d81275c6c..8ec3e12a0b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -380,7 +380,8 @@ [% FOREACH item IN items %] - + [% SET date_due = item.object.checkout.date_due %] + [% IF (StaffDetailItemSelection) %] [% IF item.can_be_edited %] @@ -477,7 +478,7 @@ [% END %] [% INCLUDE 'patron-title.inc' patron=item.object.checkout.patron hide_patron_infos_if_needed=1 %] [% END %] - : due [% item.object.checkout.date_due | $KohaDates as_due_date => 1 %] + : due [% date_due | $KohaDates as_due_date => 1 %] [% ELSIF ( transfer = item.object.get_transfer ) %] [% IF (transfer.datesent) %] -- 2.39.5