Bug 19702: Correct cookie path in Basket.js
commit7934fea0c4c36f81b943de6c2016f8cedf53486c
authorDavid Bourgault <david.bourgault@inlibro.com>
Mon, 27 Nov 2017 21:05:48 +0000 (27 16:05 -0500)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 15 Jan 2018 14:37:57 +0000 (15 14:37 +0000)
treebd86a79d3e43ef4bcb053432e85727f1c0886a48
parent9521925be40572163b98a3fd0edbdffb7e32dc72
Bug 19702: Correct cookie path in Basket.js

This corrects the cookie path in bootstrap/js/basket.js. It used to take
the default value (current page path), but will now be "/"

Test plan:
0) Visit the OPAC, add a book to your basket
1) Navigate to the OPAC's homepage (www.domain.com, without the
    /cgi-bin/koha)
    -> The basket will display as empty
    2) Apply patch
    3) Clear your cookies and your cache
    4) Redo step 1)
        -> Basket will display correctly

Patch applies without issue and functions as descibed.
Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/js/basket.js