]> 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)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 25 Mar 2022 13:57:17 +0000 (09:57 -0400)
commit884a11d011790b5082d29d732c38171793bc83b5
tree86095d3fcf8cab2e30b5af47fb743f35deb0700c
parentd4718fadcc3ca1a8942a2729b825f4912d947288
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>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Items.pm