[Koha-bugs] [Bug 29332] AdditionalContents displays blocks for every library prior to login

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 27 15:14:08 CEST 2021


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

--- Comment #6 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 126993
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126993&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.

Signed-off-by: Nick Clemens <nick at bywatersolutions.com>

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


More information about the Koha-bugs mailing list