Bug 19702: Correct cookie path in Basket.js
authorDavid Bourgault <david.bourgault@inlibro.com>
Mon, 27 Nov 2017 21:05:48 +0000 (16:05 -0500)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 22 Dec 2017 16:15:37 +0000 (13:15 -0300)
commit103fe109b22b48d506848a0a1bc43556c9dfda4b
treec43d26cd38497abdf609d73340893d8ec52161b9
parent69c8e07ca0697bd3d5beefbd7dfd84f6bb0ead88
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>
koha-tmpl/opac-tmpl/bootstrap/js/basket.js