[Koha-bugs] [Bug 23583] Handle OpacHiddenItems with yaml_preference

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 6 16:40:22 CEST 2021


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

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 119222
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=119222&action=edit
Bug 23583: Handle OpacHiddenItems with yaml_preference

This patch makes all places in Koha that rely on OpacHiddenItems
actually use C4::Context->yaml_preference instead of manually calling
the YAML libraries and handling it.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Items* \
           t/db_dependent/Koha/Item* \
           t/db_dependent/Koha/Filter/EmbedItems.t
=> SUCCESS: Tests pass!
3. Try hiding things with opac-ISBDdetail.pl and opac-search.pl
=> SUCCESS: Things work the same!
4. Sign off :-D

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


More information about the Koha-bugs mailing list