Bug 40689 - "Lost status" and "Damaged status" don't appear on moredetail.pl if user can't update them
Summary: "Lost status" and "Damaged status" don't appear on moredetail.pl if user can'...
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: David Cook
QA Contact: Testopia
URL:
Keywords: Academy
Depends on: 16157
Blocks:
  Show dependency treegraph
 
Reported: 2025-08-22 06:05 UTC by David Cook
Modified: 2025-08-22 06:15 UTC (History)
2 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 40689: Fix "Damaged status" and "Lost status" on moredetail.pl (2.27 KB, patch)
2025-08-22 06:13 UTC, David Cook
Details | Diff | Splinter Review
Bug 40689: Fix "Damaged status" and "Lost status" on moredetail.pl (2.34 KB, patch)
2025-08-22 06:14 UTC, David Cook
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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