Bugzilla – Attachment 131912 Details for
Bug 29802
biblionumber in OPACHiddenItems breaks opac lists
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29802: add 'me' to filter_by_visible_in_opac query
Bug-29802-add-me-to-filterbyvisibleinopac-query.patch (text/plain), 1.05 KB, created by
Nick Clemens (kidclamp)
on 2022-03-18 14:28:18 UTC
(
hide
)
Description:
Bug 29802: add 'me' to filter_by_visible_in_opac query
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2022-03-18 14:28:18 UTC
Size:
1.05 KB
patch
obsolete
>From 2bed45a1b135a8f4b10c93668708bdd7874b1ec4 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 18 Mar 2022 14:25:14 +0000 >Subject: [PATCH] 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> >--- > Koha/Items.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Items.pm b/Koha/Items.pm >index 551564d8b9..d8bca20519 100644 >--- a/Koha/Items.pm >+++ b/Koha/Items.pm >@@ -127,7 +127,7 @@ sub filter_by_visible_in_opac { > > my $rules_params; > foreach my $field ( keys %$rules ) { >- $rules_params->{$field} = >+ $rules_params->{'me.'.$field} = > [ { '-not_in' => $rules->{$field} }, undef ]; > } > >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29802
:
129101
|
131099
|
131911
|
131912
|
131970
|
131971