[Koha-bugs] [Bug 29332] AdditionalContents displays blocks for all libraries prior to login

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 27 12:54:57 CEST 2021


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

--- Comment #1 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 126960
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126960&action=edit
Bug 29332: Set default library limits in search_for_display

Koha::AdditionalContents->search_for_display needs to filter to just
items with a 'null' branchcode if no library_id is passed.

Test plan
1/ Add some additional content blocks that should display only for
specific branches.
2/ Navigate to the OPAC and note that blocks display for all libraries
prior to login
3/ Login to the OPAC and note that now you only see you users library
block
4/ Apply the patch
5/ Repeat steps 2 and 3 and note that now you see only the 'All
libraries' blocks display prior to login and that 'All libraries' +
'Your users library' blocks appear after login.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list