[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
Thu May 20 09:31:06 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28359

Jonathan Druart <jonathan.druart+koha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |24403
                 CC|                            |tomascohen at gmail.com

--- Comment #3 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
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

GetHiddenItemnumbers must be removed anyway.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24403
[Bug 24403] [OMNIBUS] OpacHiddenItems should hide items everywhere in the OPAC
-- 
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