Bugzilla – Attachment 152681 Details for
Bug 33976
Claims returned option is not disabled in moredetail.pl if the item has a different lost status
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33976: Disable claims returned option in moredetail.pl when another lost status is selected
Bug-33976-Disable-claims-returned-option-in-morede.patch (text/plain), 3.77 KB, created by
Martin Renvoize (ashimema)
on 2023-06-26 12:09:50 UTC
(
hide
)
Description:
Bug 33976: Disable claims returned option in moredetail.pl when another lost status is selected
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-06-26 12:09:50 UTC
Size:
3.77 KB
patch
obsolete
>From bcd71f6723128bad8c3c37863617c0adb5f05461 Mon Sep 17 00:00:00 2001 >From: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> >Date: Fri, 9 Jun 2023 14:54:33 -0400 >Subject: [PATCH] Bug 33976: Disable claims returned option in moredetail.pl > when another lost status is selected > >Prevent "claims returned" from being selectable from moredetail.pl, even >if another lost status is already set > >To test: >1. Configure Claims returned > i. Go to Administration > Authorized Values > LOST > ii. Add a new authorized value with value:6 and description:Claims returned > iii. Go to Administration > System Preferences > iv. Set ClaimReturnedLostValue to 6 and save >2. Go to any title record and click the barcode for any item >3. Click the Lost status drop-down. > Note that the Claims Returned option is disabled. >4. Select a Lost status and click "Set status" >5. Click the Lost status drop-down. > Note that the Claims Returned option is now selectable. >6. Apply the patch and refresh the page >7. Note that the Claims Returned option is now disabled. >8. Find a different item and check it out to a customer. >9. On that customer's account, click "Claim Returned" for that item >10. Click the barcode to view moredetail for that item > Note that the Lost status drop-down is disabled with Claims Returned selected > >Signed-off-by: Sam Lau <samalau@gmail.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../intranet-tmpl/prog/en/modules/catalogue/moredetail.tt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >index f51959c644..fc756aa347 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >@@ -204,10 +204,10 @@ > [% END %] > <option value="">Choose</option> > [% FOREACH itemlostloo IN itemlostloop %] >- [% IF ClaimReturnedLostValue && !ITEM_DAT.itemlost && itemlostloo.authorised_value == ClaimReturnedLostValue #Filter claims returned status from pulldown %] >- <option value="[% itemlostloo.authorised_value | html %]" disabled="disabled" title="Return claims must be processed from the patron details page">[% itemlostloo.lib | html %]</option> >- [% ELSIF itemlostloo.authorised_value == ITEM_DAT.itemlost %] >+ [% IF itemlostloo.authorised_value == ITEM_DAT.itemlost %] > <option value="[% itemlostloo.authorised_value | html %]" selected="selected">[% itemlostloo.lib | html %]</option> >+ [% ELSIF ClaimReturnedLostValue && itemlostloo.authorised_value == ClaimReturnedLostValue #Filter claims returned status from pulldown %] >+ <option value="[% itemlostloo.authorised_value | html %]" disabled="disabled" title="Return claims must be processed from the patron details page">[% itemlostloo.lib | html %]</option> > [% ELSE %] > <option value="[% itemlostloo.authorised_value | html %]">[% itemlostloo.lib | html %]</option> > [% END %] >-- >2.41.0
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 33976
:
152264
|
152345
| 152681