From f8f2c41ca633691b7ae8d1a89278fef9c97a1398 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Mon, 13 Jan 2014 20:49:10 -0500 Subject: [PATCH] temporary workaround for holds error when user isn't logged in and doesn't select a pickup location --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm index 5c0a1830e7..7354c6d7dd 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm @@ -94,7 +94,7 @@ sub load_getit { ]); } - # If user is logged in and has a default pickup location, grab it + # If user is logged in and has a default pickup location for holds, grab it if ($ctx->{user}) { my $set_map = $self->ctx->{user_setting_map}; if ($$set_map{'opac.default_pickup_location'}) { @@ -123,8 +123,8 @@ sub login_and_place_hold { return Apache2::Const::HTTP_BAD_REQUEST unless $pickup_lib =~ /^\d+$/; - #If a pickup library hasn't been selected, reload page - if ($pickup_lib == '0') { + #Temporary workaround for selection problem - if PINES (value 1) is selected, reload page + if ($pickup_lib == '1') { return $self->load_login; } -- 2.11.0