[open-ils-commits] r13812 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Aug 11 12:38:47 EDT 2009
Author: erickson
Date: 2009-08-11 12:38:44 -0400 (Tue, 11 Aug 2009)
New Revision: 13812
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm
Log:
selected columns in a json_query need to be in an array
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm 2009-08-11 16:38:40 UTC (rev 13811)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm 2009-08-11 16:38:44 UTC (rev 13812)
@@ -818,7 +818,7 @@
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;
More information about the open-ils-commits
mailing list