Bugzilla – Attachment 110899 Details for
Bug 26562
Searches are shared between sessions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26562: Removes 'searches' from localStorage on logout
Bug-26562-Removes-searches-from-localStorage-on-lo.patch (text/plain), 1.07 KB, created by
Jonathan Druart
on 2020-09-29 09:43:32 UTC
(
hide
)
Description:
Bug 26562: Removes 'searches' from localStorage on logout
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-09-29 09:43:32 UTC
Size:
1.07 KB
patch
obsolete
>From 1ff769beca6c689045f72526dfe535f710e68297 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 29 Sep 2020 11:43:00 +0200 >Subject: [PATCH] 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 >--- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index 1db84b3d58..29ba0d9805 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -180,6 +180,7 @@ function logOut(){ > clearHoldFor(); > removeLastBorrower(); > localStorage.removeItem("sql_reports_activetab"); >+ localStorage.removeItem("searches"); > } > > function openHelp(){ >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26562
: 110899 |
110908
|
110909
|
110910