[Koha-bugs] [Bug 28359] Invalid value of OpacHiddenItems crashes OPAC search
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Oct 13 17:03:03 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28359
--- Comment #5 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Jonathan Druart from comment #3)
> filter_by_visible_in_opac and GetHiddenItemnumbers have different behaviours:
>
>
> From GetHiddenItemnumbers:
> if (any { $val eq $_ } @{$hidingrules->{$field}}) {
> Expect an array (damaged: [1])
>
> From filter_by_visible_in_opac:
> { '-not_in' => $rules->{$field} }
> will work for array and scalar
This is true: it is an unadvertised side-effect of considering the
OpacHiddenItems syspref YAML, and not just a subset of YAML.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list