Bug 34519: Ensure we always have an array

Signed-off-by: Janusz Kaczmarek <januszop@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2023-08-11 16:43:14 +00:00 committed by Tomas Cohen Arazi
parent 1bfaa2a5a5
commit 3a74e69b15
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@
}, {});
[% IF Koha.Preference('ExtendedPatronAttributes') %]
[% SET extended_attribute_types = ExtendedAttributeTypes.codes( staff_searchable => 1 ) %]
[% SET extended_attribute_types = [ ExtendedAttributeTypes.codes( staff_searchable => 1 ) ] %]
let extended_attribute_types = [% To.json(extended_attribute_types || []) | $raw %];
[% END %]