]> git.koha-community.org Git - koha.git/commit
Bug 20122: Explicitly set path to fix emptying cart functionality
authorMark Tompsett <mtompset@hotmail.com>
Fri, 6 Apr 2018 14:59:28 +0000 (14:59 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 22 May 2018 10:57:07 +0000 (12:57 +0200)
commit85ae8fdd03bdde0590e551e46a325462d1956fe6
tree9fb71d57a71e458c1b701b217df37f551ccac59d
parenta2ea5b9f10bc4009284c51f8a3c6ba7316a2f9cf
Bug 20122: Explicitly set path to fix emptying cart functionality

This is caused by bib_list not being deleted.
The path was not explicitly set.
This patch adds path=/ explicitly to ensure it
does get deleted.

TEST PLAN
---------
1) search for 'the' in OPAC
2) add several items to cart.
3) look at your cart.
4) empty and close the cart, select all->remove
   -- either way window closes and it looks empty.
5) refresh the page
   -- cart comes back.
   -- in chromium inspecting the page, specifically
      the "Application" area, bib_list is shown as
      a cookie still.
6) apply patch
7) restart_all and empty cache forcing JS reload
8) repeat steps 1-5
   -- this time cart stays empty.
   -- and the bib_list cookie is gone

Signed-off-by: Roch D'Amour <roch.damour@inlibro.com> using firefox 59.0.2
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 16c6ff1e3cb30f3aa4d2e23301b942eaf5a63d4c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/js/basket.js