From ac1346d13817f749c7ab63b56c87e2a9e46988a9 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 27 Oct 2020 20:09:58 +0000 Subject: [PATCH] Bug 26592: (Rmaint follow-up) add missing parenthesis to escapeHTML Signed-off-by: Lucas Gass (cherry picked from commit 997a0fbec691b80fe77baf447c01c3db9456894b) Signed-off-by: Lucas Gass (cherry picked from commit f67bd64dee422f380824a5520e7a383e3888da97) Signed-off-by: Victor Grousset/tuxayo --- koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc index 3ae30cf446..0fa6214d0c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc @@ -98,7 +98,7 @@ var cardnumber = ""; if( item.cardnumber != "" ){ // Display card number in parentheses if it exists - cardnumber = " (" + ( item.cardnumber ? item.surname.escapeHtml() : "" ) + ") "; + cardnumber = " (" + ( item.cardnumber ? item.cardnumber.escapeHtml() : "" ) + ") "; } return $( "
  • " ) .data( "ui-autocomplete-item", item ) -- 2.39.5