[open-ils-commits] [GIT] Evergreen ILS branch master updated. ad66d9e03b0bb00eba9c19eceefe73756e10d95e

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, master has been updated
       via  ad66d9e03b0bb00eba9c19eceefe73756e10d95e (commit)
      from  ffc05ea8f732a7b0d4ccf9ca94e68abc1e2ef17d (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 ad66d9e03b0bb00eba9c19eceefe73756e10d95e
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