From 11c9df8639009933ee381baae8a3cafc01b67de0 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Fri, 20 Dec 2013 12:58:50 -0500 Subject: [PATCH] Bug fix to recognize user's default pickup library for holds when they are logged in. --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm index 0598947b62..5c0a1830e7 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm @@ -80,6 +80,8 @@ sub load_getit { return $self->save_item_to_bookbag($rec_id, $bbag_id) if $action eq 'save'; return $self->login_and_place_hold($rec_id) if $action eq 'hold'; + + # if the user is logged in, fetch his bookbags if ($ctx->{user}) { $ctx->{bookbags} = $self->editor->search_container_biblio_record_entry_bucket([ @@ -92,7 +94,7 @@ sub load_getit { ]); } - # If user is logged in, get default hold pickup and notification info + # If user is logged in and has a default pickup location, grab it if ($ctx->{user}) { my $set_map = $self->ctx->{user_setting_map}; if ($$set_map{'opac.default_pickup_location'}) { -- 2.11.0