From b688fb6e71a9d76758851c526f9e5f34ded6fedf Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 25 Feb 2020 18:08:59 +0000 Subject: [PATCH] Bug 24713: JavaScript error on staff client catalog search results page Content-Type: text/plain; charset=utf-8 This patch modifies the output of template toolkit variables so that values in the in-page JavaScript are quoted. This avoids JavaScript errors when the template variable is empty. To test, apply the patch and perform a catalog search in the staff client. Use the browser's developer tool to check for JavaScript errors in the console. There should be none. Test with AmazonCoverImages both on and off. Signed-off-by: David Nind Signed-off-by: Marcel de Rooy --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 6616d6a4a9..211b4164e3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -680,14 +680,14 @@