ensure that cart has access to list of bookbags
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 15 Jun 2018 19:43:00 +0000 (15:43 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 15 Jun 2018 19:43:00 +0000 (15:43 -0400)
(when user is logged in)

Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Container.pm

index 5ff10de..ae7df1e 100644 (file)
@@ -391,6 +391,12 @@ sub load_mylist {
     (undef, $self->ctx->{mylist}, $self->ctx->{mylist_marc_xml}) =
         $self->fetch_mylist(1);
 
+    # get list of bookbags in case user wants to move cart contents to
+    # one
+    if ($self->ctx->{user}) {
+        $self->_load_lists_and_settings;
+    }
+
     return Apache2::Const::OK;
 }