[Koha-bugs] [Bug 21479] Removing from cart removes 2 items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 2 22:36:31 CEST 2018


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

--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 79852
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=79852&action=edit
Bug 21479: Fix remove from cart - OPAC

This bug affects all stable releases and seems to have been there for a
long time.

To recreate:
- Launch a search at the OPAC
- Add 2 elements to the cart
- Remove one
=> Cart is empty

Note that it does not exist on the staff interface

The code in opac-bottom is only for the detail page, but the evenement
binding was done on the result search page as they have the same selector
(.cartRemove)
Using a more specific selector (already used for "add to shelf") fixes the
problem.

Test plan:
Add and remove elements to/from your cart
On both search and detail view

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


More information about the Koha-bugs mailing list