13 Oct
2021
13 Oct
'21
5:03 p.m.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28359 --- Comment #5 from Tomás Cohen Arazi <tomascohen@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.