Bug 26460: Fix line ending in JSON
commit692b0958414474b48ef7242b65e697913dc99deb
authorNick Clemens <nick@bywatersolutions.com>
Mon, 14 Sep 2020 17:44:36 +0000 (14 17:44 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 18 Sep 2020 09:08:35 +0000 (18 11:08 +0200)
tree6ae5bc0df6645eb3c631a5762324ab7005299a30
parentf1c2974d7b3a20d03d7be4df45dde8e8c2d86ff0
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 <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt