From 8c001dd347380d9c1280ba281f4bf6306e8a916a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 27 Jan 2022 12:40:45 +0100 Subject: [PATCH] Bug 30296: [20.11.x] Set path for bibs_selected Or it does not get cleared. Not that we may want to skip it for master as bug 29932 is going to replace it with sessionStorage Signed-off-by: Martin Renvoize Signed-off-by: Marcel de Rooy No longer needed too on 21.11 and 21.05. Signed-off-by: Victor Grousset/tuxayo --- koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js index c62a037e52..4f0eb8a15f 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js @@ -320,7 +320,7 @@ function delBibToContext( bibnum ) { } function setContextBiblioNumbers( bibnums ) { - $.cookie('bibs_selected', JSON.stringify( bibnums )); + $.cookie('bibs_selected', JSON.stringify( bibnums ), { path: '/' }); } function getContextBiblioNumbers() { -- 2.39.5