From f0b7b8974be84379fc854e74e6bcdcb1ba01a109 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 14 Sep 2020 17:44:36 +0000 Subject: [PATCH] Bug 26460: Fix line ending in JSON Wrong line ending in JSON causes error: Uncaught SyntaxError: missing } after property list note: { opened at line 29579, column 15 To test: 1 - Have a title with some items not for hold in staff interface 2 - Set AllowHoldPolicyOverride to 'Allow' 3 - Attempt to place hold on the title 4 - Note JS error in the console and datatable does not load for items 5 - Apply patch 6 - Reload 7 - Error is cleared, table loads correctly Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart Signed-off-by: Jonathan Druart (cherry picked from commit 692b0958414474b48ef7242b65e697913dc99deb) Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 26c9872f05..dd8587ffc1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -945,7 +945,7 @@ var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]"; var override_items = {[% FOREACH bibitemloo IN bibitemloop %][% FOREACH itemloo IN bibitemloo.itemloop %][% IF ( itemloo.override ) %] [% itemloo.itemnumber | html %]: { - homebranch: "[% To.json( Branches.GetName( itemloo.homebranch ) ) | $raw %]"; + homebranch: "[% To.json( Branches.GetName( itemloo.homebranch ) ) | $raw %]", holdallowed: [% itemloo.holdallowed | html %] }, [% END %][% END %][% END %] -- 2.39.5