Bugzilla – Attachment 110908 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: [20.05.x] Removes 'searches' from localStorage on logout
Bug-26562-2005x-Removes-searches-from-localStorage.patch (text/plain), 1.82 KB, created by
Jonathan Druart
on 2020-09-29 12:58:04 UTC
(
hide
)
Description:
Bug 26562: [20.05.x] Removes 'searches' from localStorage on logout
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-09-29 12:58:04 UTC
Size:
1.82 KB
patch
obsolete
>From 9b6a1fe7d36933e42f6d01313ba2944d71fb2ca4 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: [20.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 >--- > koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt | 5 +++-- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 1 + > 2 files changed, 4 insertions(+), 2 deletions(-) > >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( '<input name="auth_forwarded_hash" type="hidden" value="' + document.location.hash + '"/>' ); > } >- // if showLastPatron information was not cleared during logout, clear it now >- removeLastBorrower(); >+ >+ // Clear last borrowers, rememberd sql reports, carts, etc. >+ logOut(); > }); > </script> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index 05681d3d8d..716cf1624d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -177,6 +177,7 @@ function logOut(){ > } > clearHoldFor(); > removeLastBorrower(); >+ 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