https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42386

--- Comment #32 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 201603
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201603&action=edit
Bug 42386: (follow-up) Update templates to use snake_case status codes

The hold availability classes return snake_case status codes but the
templates were never updated from the old camelCase convention, causing
users to see generic/wrong messages instead of specific hold failure
reasons.

This patch updates:
- reserve/request.tt (SWITCH/CASE blocks, IF conditions, JS map)
- opac-user.tt (SWITCH/CASE block for failed holds)

Test plan:
1. Apply patch
2. Place a hold that triggers any failure reason (e.g. age restriction,
   too many holds, item already on hold)
3. Verify the specific error message is shown instead of a generic one
4. Sign off :-D

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to