]> git.koha-community.org Git - koha.git/commit
Bug 29802: add 'me' to filter_by_visible_in_opac query
authorNick Clemens <nick@bywatersolutions.com>
Fri, 18 Mar 2022 14:25:14 +0000 (14:25 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 23 Mar 2022 20:50:51 +0000 (10:50 -1000)
commitbdb30b3b8e161558a460c7d7661b761ef2e7b504
tree73434633d85894252ed930475044f4ea898ec567
parent4ea553e03ebafa7286c1f237da24abace6abd59a
Bug 29802: add 'me' to filter_by_visible_in_opac query

This patch prefixes all of the fields in OpacHiddenItems with
"me." before searching.

Unit tests added to cover this case1

To test:
1 - Create a public list
2 - Set OpacHiddenItems to:
    biblionumber: [1]
3 - Attempt to view list in OPAC
4 - Booom
5 - Aply patch
6 - Reload list
7 - Success

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Items.pm