[open-ils-commits] [GIT] Evergreen ILS branch rel_3_4 updated. 5a35074c9479cd20503f9543221d11c477446a96

Evergreen Git git at git.evergreen-ils.org
Wed Aug 5 17:19:36 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_4 has been updated
       via  5a35074c9479cd20503f9543221d11c477446a96 (commit)
      from  f9491973457baf525d8165f6ff8d981e222b4cac (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 5a35074c9479cd20503f9543221d11c477446a96
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