Bug 33568: JSON-encode html output of build_table
This prevents error with quotes coming from translations Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Laurence Rault <laurence.rault@biblibre.com> Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
afc55cb68c
commit
729d37d442
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
[% USE To %]
|
||||
[% USE tojson = To %]
|
||||
[% USE Koha %]
|
||||
[% USE Branches %]
|
||||
[% USE AuthorisedValues %]
|
||||
|
@ -234,8 +235,8 @@
|
|||
};
|
||||
|
||||
let table_nodes = {
|
||||
holdings: '[% PROCESS 'build_table' tab="holdings" | collapse %]',
|
||||
otherholdings: '[% PROCESS 'build_table' tab="otherholdings" | collapse %]',
|
||||
holdings: "[% PROCESS 'build_table' tab="holdings" | collapse | $tojson %]",
|
||||
otherholdings: "[% PROCESS 'build_table' tab="otherholdings" | collapse | $tojson %]",
|
||||
};
|
||||
function build_items_table (tab_id, add_filters, dt_options, drawcallback) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue