[open-ils-commits] [GIT] Evergreen ILS branch rel_3_5 updated. 86b8dc5ac090c86a0dd4c34176398e8915e5a08f

Evergreen Git git at git.evergreen-ils.org
Wed Aug 5 17:19:37 EDT 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_3_5 has been updated
       via  86b8dc5ac090c86a0dd4c34176398e8915e5a08f (commit)
      from  b0937bec9e04c649112dfa88e737fd73cb448d70 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 86b8dc5ac090c86a0dd4c34176398e8915e5a08f
Author: Bill Erickson <berickxx at gmail.com>
Date:   Wed Mar 18 12:41:38 2020 -0400

    LP1867834 Staffcat clear basket on logout
    
    Tell the browser/local store service to treat the staff catalog basket
    cache key as a "login item", meaning it should be cleared upon logout.
    
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/eg2/src/app/share/catalog/basket.service.ts b/Open-ILS/src/eg2/src/app/share/catalog/basket.service.ts
index 0d97220c80..20fb491825 100644
--- a/Open-ILS/src/eg2/src/app/share/catalog/basket.service.ts
+++ b/Open-ILS/src/eg2/src/app/share/catalog/basket.service.ts
@@ -30,6 +30,9 @@ export class BasketService {
     ) {
         this.idList = [];
         this.onChange = new EventEmitter<number[]>();
+
+        // Tell the browser store service to clear the basket on logout.
+        this.store.addLoginSessionKey(BASKET_CACHE_KEY_COOKIE);
     }
 
     hasRecordId(id: number): boolean {

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/eg2/src/app/share/catalog/basket.service.ts | 3 +++
 1 file changed, 3 insertions(+)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list