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>
(cherry picked from commit 8cb2dd4e30
)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
3a550c39cb
commit
a29fec1b4e
1 changed files with 3 additions and 2 deletions
|
@ -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) %]
|
||||
|
|
Loading…
Reference in a new issue