From 607c0fda4f6adc3c88f5fdd281ff0c0bb7b6d388 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 28 Oct 2020 09:07:01 +1300 Subject: [PATCH] Bug 26592: [19.11] (rmaint follow-up) Fix JS error when using patron autocomplete searchbar --- 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 594f322598..3ae30cf446 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc @@ -102,7 +102,7 @@ } return $( "
  • " ) .data( "ui-autocomplete-item", item ) - .append( "" + ( item.surname ? item.surname.escapeHtml() : "" ) + ", " + ( item.firstname ? item.firstname.escapeHtml : "" ) + ( cardnumber ? cardnumber.escapeHtml() : "" ) + " " + ( item.dateofbirth ? item.dateofbirth.escapeHtml() : "" ) + " " + ( item.address ? item.address.escapeHtml() : "" ) + " " + ( item.city ? item.city.escapeHtml() : "" ) + " " + ( item.zipcode ? item.zipcode.escapeHtml() : "" ) + " " + ( item.country ? item.country.escapeHtml() : "" ) + "" ) + .append( "" + ( item.surname ? item.surname.escapeHtml() : "" ) + ", " + ( item.firstname ? item.firstname.escapeHtml() : "" ) + ( cardnumber ? cardnumber.escapeHtml() : "" ) + " " + ( item.dateofbirth ? item.dateofbirth.escapeHtml() : "" ) + " " + ( item.address ? item.address.escapeHtml() : "" ) + " " + ( item.city ? item.city.escapeHtml() : "" ) + " " + ( item.zipcode ? item.zipcode.escapeHtml() : "" ) + " " + ( item.country ? item.country.escapeHtml() : "" ) + "" ) .appendTo( ul ); }; } -- 2.39.5