From: Galen Charlton Date: Fri, 8 Jun 2018 16:01:19 +0000 (-0400) Subject: fix actually moving cart items to new list X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a42ba344bbed22c729bebd7b9285d4a2b626c1b6;p=working%2FEvergreen.git fix actually moving cart items to new list --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm index c45a07a604..3ea7d7944b 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -2520,8 +2520,8 @@ sub load_myopac_bookbag_update { $success = $U->simplereq('open-ils.actor', 'open-ils.actor.container.create', $e->authtoken, 'biblio', $list); if (ref($success) ne 'HASH') { + $list_id = (ref($success)) ? $success->id : $success; if (scalar @add_rec) { - $list_id = (ref($success)) ? $success->id : $success; foreach my $add_rec (@add_rec) { my $item = Fieldmapper::container::biblio_record_entry_bucket_item->new; $item->bucket($list_id);