Bugzilla – Attachment 153228 Details for
Bug 33817
Composition of an item bundle can be changed if checked out
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33817: Prevent item bundle that is checked out to be modified
Bug-33817-Prevent-item-bundle-that-is-checked-out-.patch (text/plain), 2.41 KB, created by
Katrin Fischer
on 2023-07-09 15:30:48 UTC
(
hide
)
Description:
Bug 33817: Prevent item bundle that is checked out to be modified
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-07-09 15:30:48 UTC
Size:
2.41 KB
patch
obsolete
>From 52f1b1dd77a1b3429c39bee3b55c7855ce9a7794 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <martin.renvoize@ptfs-europe.com> >--- > 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 @@ > </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) %] >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33817
:
151623
|
151660
|
151662
|
151663
|
152723
|
152724
|
152725
| 153228 |
153229
|
153230
|
153293