From 8a21a9c8d89b56b8e8b8c4107d9f210f0d747d1e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 11 Feb 2022 13:17:47 +0100 Subject: [PATCH] Bug 30055: Fix when there is no searchable attr type MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit No idea why we need that. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Séverine Queune Signed-off-by: Martin Renvoize Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/modules/members/search.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/search.tt index ed1857207a..c1b16a8d22 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/search.tt @@ -141,7 +141,7 @@ }, {}); [% IF Koha.Preference('ExtendedPatronAttributes') %] - let extended_attribute_types = [% To.json(attribute_type_codes) | $raw %]; + let extended_attribute_types = [% To.json(attribute_type_codes || []) | $raw %]; [% END %] [% INCLUDE 'datatables.inc' %] -- 2.39.5