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: Pushed to oldstable --- QA Contact: Jonathan Druart <jonathan.druart>
Severity: minor    
Priority: P5 - low CC: fridolin.somers, gmcharlt, kyle, lucas
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:
25.11.00,25.05.04,24.11.10
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
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
Comment 3 Noah Tremblay 2025-09-05 12:20:20 UTC
Created attachment 186204 [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

Signed-off-by: noah <noah@inlibro.com>
Comment 4 Jonathan Druart 2025-09-16 09:06:10 UTC
Created attachment 186455 [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

Signed-off-by: Noah Tremblay <noah.tremblay@inlibro.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 5 Lucas Gass (lukeg) 2025-09-18 19:54:20 UTC
Nice work everyone!

Pushed to main for 25.11
Comment 6 Paul Derscheid 2025-09-25 16:30:41 UTC
Nice work everyone!

Pushed to 25.05.x
Comment 7 Fridolin Somers 2025-10-16 07:40:21 UTC
Pushed to 24.11.x for 24.11.10