[open-ils-commits] r13811 - branches/rel_1_6/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:43 EDT 2009
Author: erickson
Date: 2009-08-11 12:38:40 -0400 (Tue, 11 Aug 2009)
New Revision: 13811
Modified:
branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm
Log:
selected columns in a json_query need to be in an array
Modified: branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm
===================================================================
--- branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm 2009-08-11 16:38:23 UTC (rev 13810)
+++ branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm 2009-08-11 16:38:40 UTC (rev 13811)
@@ -763,7 +763,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