[Koha-bugs] [Bug 22749] Koha::Item->hidden_in_opac should consider hidelostitems syspref

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 23 10:14:01 CEST 2019


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

--- Comment #7 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 88405
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88405&action=edit
Bug 22749: Make Koha::Item->hidden_in_opac respect hidelostitems

This patch makes Koha::Item->hidden_in_opac take hidelostitems into
account when performing the calculation.

To test:
- Apply the regression tests patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Item.t
=> FAIL: Tests fail because the code doesn't (yet) care about the
syspref
- Apply this patch
- Run:
 k$ prove t/db_dependent/Koha/Item.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Liz Rea <wizzyrea at gmail.com>

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>

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


More information about the Koha-bugs mailing list