diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt index acdbeb327e..86db48ff66 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt @@ -126,8 +126,9 @@ if ( document.location.hash ) { $( '#loginform' ).append( '' ); } - // if showLastPatron information was not cleared during logout, clear it now - removeLastBorrower(); + + // Clear last borrowers, rememberd sql reports, carts, etc. + logOut(); }); [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js index f05d09ea76..16ef051fba 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js @@ -179,6 +179,7 @@ function logOut(){ } clearHoldFor(); removeLastBorrower(); + localStorage.removeItem("searches"); } function openHelp(){