From dd9a495b0a063f0cd58fef86f099b4302ae8831e 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 Content-Type: text/plain; charset=utf-8 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. --- 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.20.1