Bug 23530: Fix cart showing only hidden items
authorMason James <mtj@kohaaloha.com>
Tue, 3 Sep 2019 04:02:32 +0000 (16:02 +1200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 6 Sep 2019 12:17:48 +0000 (13:17 +0100)
commit60ce66b6b658bfbe0d9ca459afc673042c7a854f
tree695b92c57399884acd516fac11e28df34633d1cf
parent6b6fe8f88b33e3455ae30526109674bfa4f3d185
Bug 23530: Fix cart showing only hidden items

Items hidden with the OpacHiddenItems system preference
were still displayed in the OPAC cart and the normal items
were hidden instead. This patch corrects the display.

To test:
- prep a test bib with hidden and other items using
  the OpacHiddenItems system preference
- add bib to cart
- observe that hidden items are displayed - non-hidden items are hidden
- apply patch, reload page
- observe that hidden items are hidden, non-hidden items are displayed

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
opac/opac-basket.pl