From: Jeff Godin Date: Sun, 22 May 2016 05:14:14 +0000 (-0400) Subject: Add bookbags to context of prefs_notify page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bfa40715ec402f3a4efae99ece933f245dc876c3;p=evergreen%2Ftadl.git Add bookbags to context of prefs_notify page Signed-off-by: Jeff Godin --- 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 9dc7f73f37..8fb8ec00c5 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -193,6 +193,14 @@ sub load_myopac_prefs_notify { $self->ctx->{opt_in_settings} = $user_prefs; + $self->ctx->{bookbags} = $e->search_container_biblio_record_entry_bucket( + [ + {owner => $self->ctx->{user}->id, btype => 'bookbag'}, { + order_by => {cbreb => 'name'} + } + ] + ); + return Apache2::Const::OK unless $self->cgi->request_method eq 'POST';