https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28169
Bug ID: 28169
Summary: Text value of holdallowed rendered without quotes in
JS
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: ASSIGNED
Severity: normal
Priority: P5 - low
Component: Circulation
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Depends on: 27069
There is code in request.tt:
homebranch: "[% To.json( Branches.GetName( itemloo.homebranch ) ) | $raw
%]",
holdallowed: [% itemloo.holdallowed | html %]
which earlier rendered itemloo.holdallowed ony digits for itemloo.holdallowed
but now it has string, for example 'from_any_library', so it should be in
quotes now.
To reproduce the problem:
1. Add circulation rules which allow 1 hold to the itemtype
2. Make 1 hold to patron
3. Make sure AllowHoldPolicyOverride syspref enabled
4. Make hold waiting and click revert button, you should see now JS error
I am providing a fix today.
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27069
[Bug 27069] Change holdallowed values from numbers to strings
--
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/