From fd1cdebee15588f1e483c83a7feb0a68d05cf4d3 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. Signed-off-by: Owen Leonard Signed-off-by: Lucas Gass --- 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 a2ba59bf31..f1745d52e8 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 ) %] +