selected columns in a json_query need to be in an array
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 11 Aug 2009 16:38:44 +0000 (16:38 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 11 Aug 2009 16:38:44 +0000 (16:38 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13812 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm

index 4a409e9..b2431df 100644 (file)
@@ -818,7 +818,7 @@ sub retrieve_hold_queue_status_impl {
     my $potentials = $e->search_action_hold_copy_map({hold => $hold->id}, {idlist => 1});
     my $num_potentials = scalar(@$potentials);
 
-    my $user_org = $e->json_query({select => {au => 'home_ou'}, from => 'au', where => {id => $hold->usr}})->[0]->{home_ou};
+    my $user_org = $e->json_query({select => {au => ['home_ou']}, from => 'au', where => {id => $hold->usr}})->[0]->{home_ou};
     my $default_hold_interval = $U->ou_ancestor_setting_value($user_org, OILS_SETTING_HOLD_ESIMATE_WAIT_INTERVAL);
     my $estimated_wait = $qpos * ($default_hold_interval / $num_potentials) if $default_hold_interval;