Bug 22749: Make Koha::Item->hidden_in_opac respect hidelostitems
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 22 Apr 2019 15:02:02 +0000 (12:02 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 24 Apr 2019 10:39:55 +0000 (10:39 +0000)
commitb639271a615aaf9dce0d6fc2fd0dc7e22e8cf74a
tree1d1fa6afbfdc218b12986c2d8716a230576e2c93
parent6f4565ce686919ada0bc95ea26497ff80e4df250
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@gmail.com>

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

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Item.pm