[open-ils-commits] r9340 - trunk/Open-ILS/src/perlmods/OpenILS/Application

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Apr 14 10:29:51 EDT 2008


Author: miker
Date: 2008-04-14 09:51:53 -0400 (Mon, 14 Apr 2008)
New Revision: 9340

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Fielder.pm
Log:
editor returns an array

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Fielder.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Fielder.pm	2008-04-14 13:32:05 UTC (rev 9339)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Fielder.pm	2008-04-14 13:51:53 UTC (rev 9340)
@@ -73,14 +73,14 @@
 
     $log->debug( 'Query Class: '. $obj_class );
 
-    my $req = new_editor()->json_query({
+    my $res = new_editor()->json_query({
         select  => { $obj_class => $fields },
         from    => $obj_class,
         where   => $query
     });
 
-    while (my $res = $req->recv) {
-        $client->respond($res->content);
+    for my $value (@$res) {
+        $client->respond($value);
     }
 
     return undef;



More information about the open-ils-commits mailing list