From bfa40715ec402f3a4efae99ece933f245dc876c3 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Sun, 22 May 2016 01:14:14 -0400 Subject: [PATCH] Add bookbags to context of prefs_notify page Signed-off-by: Jeff Godin --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm | 8 ++++++++ 1 file changed, 8 insertions(+) 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'; -- 2.11.0