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:
parent
1bfaa2a5a5
commit
3a74e69b15
|
|
@ -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 %]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue