Bug 26562: [19.05.x] Removes 'searches' from localStorage on logout
A user recently logged in will inherit the "searches" item stored in localStorage. To recreate: Log in with user A, do some searches Note that the "searches" item is filled in with the search queries Logout and log in with user B Note that the "searches" item is still there Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
parent
2db042f2ff
commit
efd6054050
|
|
@ -126,6 +126,9 @@
|
|||
if ( document.location.hash ) {
|
||||
$( '#loginform' ).append( '<input name="auth_forwarded_hash" type="hidden" value="' + document.location.hash + '"/>' );
|
||||
}
|
||||
|
||||
// Clear last borrowers, rememberd sql reports, carts, etc.
|
||||
logOut();
|
||||
});
|
||||
</script>
|
||||
[% END %]
|
||||
|
|
|
|||
|
|
@ -147,6 +147,7 @@ function logOut(){
|
|||
delBasket('main', true);
|
||||
}
|
||||
clearHoldFor();
|
||||
localStorage.removeItem("searches");
|
||||
}
|
||||
|
||||
function openHelp(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue