Bug 40689

Summary: "Lost status" and "Damaged status" don't appear on moredetail.pl if user can't update them
Product: Koha Reporter: David Cook <dcook>
Component: CirculationAssignee: David Cook <dcook>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: gmcharlt, kyle
Version: MainKeywords: Academy
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 16157    
Bug Blocks:    
Attachments: Bug 40689: Fix "Damaged status" and "Lost status" on moredetail.pl
Bug 40689: Fix "Damaged status" and "Lost status" on moredetail.pl

Description David Cook 2025-08-22 06:05:28 UTC
There's just a little bug in the display of moredetail.pl

To reproduce:
Set the "Damaged status", "Withdrawn status", and "Lost status" for an item on bib 29 on KTD with a privileged user.

Now create a user with just the "catalogue" permission and go to http://localhost:8081/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=29

NOTE: You will see the Withdrawn status, but the "Lost status" and "Damaged status" won't appear.
Comment 1 David Cook 2025-08-22 06:13:05 UTC
Created attachment 185703 [details] [review]
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. Go to /cgi-bin/koha/catalogue/moredetail.pl?biblionumber=<biblionumber from item>
3. Note how "Withdrawn status", "Lost status", and "Damaged status" all appear now
Comment 2 David Cook 2025-08-22 06:14:06 UTC
Created attachment 185704 [details] [review]
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=<biblionumber from item>
4. Note how "Withdrawn status", "Lost status", and "Damaged status" all appear now