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 <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2023-05-24 13:16:14 +02:00 committed by Tomas Cohen Arazi
parent 55f3eb3919
commit 8cb2dd4e30
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 3 additions and 2 deletions

View File

@ -380,7 +380,8 @@
</thead>
<tbody>
[% FOREACH item IN items %]
<tr id="item_[% item.itemnumber | html %]" data-itemnumber="[% item.itemnumber | html %]" data-duedate="[% item.datedue | html %]">
[% SET date_due = item.object.checkout.date_due %]
<tr id="item_[% item.itemnumber | html %]" data-itemnumber="[% item.itemnumber | html %]" data-duedate="[% date_due | html %]">
[% IF (StaffDetailItemSelection) %]
<td style="text-align:center;vertical-align:middle">
[% 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 %]
</span>
[% ELSIF ( transfer = item.object.get_transfer ) %]
[% IF (transfer.datesent) %]