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

--- Comment #61 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 203520
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203520&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

Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to