From ed9672abf24ac10864910019ab17c875b2dad554 Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 22 Aug 2025 06:11:15 +0000 Subject: [PATCH] Bug 40689: Fix "Damaged status" and "Lost status" on moredetail.pl This change just repairs moredetail.tt to re-apply the fix from bug 16157 which seems to have only been partially applied back in 2016. Test plan: 0. Apply the patch 1. Set the "Damaged status", "Withdrawn status", and "Lost status" for an item 2. Create a user that only has "catalogue" permission and log in as them 3. Go to /cgi-bin/koha/catalogue/moredetail.pl?biblionumber= 4. Note how "Withdrawn status", "Lost status", and "Damaged status" all appear now --- .../intranet-tmpl/prog/en/modules/catalogue/moredetail.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 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 84526221a9..1bb67a8e43 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -285,7 +285,7 @@ [% ELSE %] [% FOREACH itemlostloo IN itemlostloop %] - [% IF ( itemlostloo.selected ) %] + [% IF ( itemlostloo.authorised_value == ITEM_DAT.itemlost ) %] [% itemlostloo.lib | html %] [% END %] [% END %] @@ -320,7 +320,7 @@ [% ELSE %] [% FOREACH itemdamagedloo IN itemdamagedloop %] - [% IF ( itemdamagedloo.selected ) %] + [% IF ( itemdamagedloo.authorised_value == ITEM_DAT.damaged ) %] [% itemdamagedloo.lib | html %] [% END %] [% END %] -- 2.39.5