Bug 30055: Fix when there is no searchable attr type
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 11 Feb 2022 12:17:47 +0000 (13:17 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 4 Apr 2022 07:46:58 +0000 (09:46 +0200)
No idea why we need that.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Séverine Queune <severine.queune@bulac.fr>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/search.tt

index ed18572..c1b16a8 100644 (file)
         }, {});
 
         [% 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 %]
     </script>
     [% INCLUDE 'datatables.inc' %]