The opac-basket.pl script (opac cart feature) seems to accidentally display 'hidden' items. It seems the script intends to skip 'hidden' items, but actually skips *non* 'hidden' items instead it seems to be a trivial fix, confirmed on master and 18.11.08 branches
Created attachment 92534 [details] [review] Bug 23530 - Opac-basket.pl script accidentally displays 'hidden' items to test patch.. - prep a test bib with hidden and other items - 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
Created attachment 92535 [details] before patch, WITHDRAWN item displayed
Created attachment 92536 [details] after patch, WITHDRAWN item hidden
hi Marcel i think the error was introduced from a 'squashing' patch for BZ 14385 https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=80466
*** Bug 15513 has been marked as a duplicate of this bug. ***
Updating severity - affects the OPAC (library patrons) and is even worse than showing the hidden items as it hides the all the items that you should see.
Created attachment 92537 [details] [review] 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>
Created attachment 92546 [details] [review] 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>
Nice work! Pushed to master for 19.11.00
Pushed to 19.05.x for 19.05.04 What a dirty bug ;)
Just verified in 19.11.09 - problem exists there, this should be backported.
(In reply to Katrin Fischer from comment #11) > Just verified in 19.11.09 - problem exists there, this should be backported. 18.11.09 of course.
Hi Lucas, has this been missed?
Found it in 18.11.10: http://git.koha-community.org/gitweb/?p=koha.git;a=commit;h=0b9bd169194476a8a33ef61e1ee82b2f0839c34a