From a8322186803728778c78094ae8f3206581d5ef72 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 25 May 2023 15:07:25 +0200 Subject: [PATCH] Bug 33829: Fix add patron to patron list if PatronAutoComplete is off When adding patrons to a patron list we get a JS error about undefined variables. We can easily fix this problem by defining them even if the pref is not set. We are enabling the auto complete even if PatronAutoComplete if off. --- koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 a2ba59bf31e..f1745d52e81 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc @@ -69,12 +69,14 @@ [% END %] -[% IF ( PatronAutoComplete ) %] - +[% IF ( PatronAutoComplete ) %] +