Bug 26562: Removes 'searches' from localStorage on logout
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 29 Sep 2020 09:43:00 +0000 (11:43 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 29 Sep 2020 12:28:19 +0000 (14:28 +0200)
commit0b7bd6ee28a2a62b32aa8ef1c99abcf4fdb76f7d
tree5e310bcea86428451e300fc77dfd0677309f059a
parent88c40e50975957b1de4b5e6b097555ee61ff062b
Bug 26562: 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: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/js/staff-global.js