fix a bug where only the first circ_id given was being backdated with the .batch...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Oct 2009 08:23:34 +0000 (08:23 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Oct 2009 08:23:34 +0000 (08:23 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14514 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 7415181..6dd9a56 100644 (file)
@@ -396,7 +396,9 @@ sub post_checkin_backdate_circ {
     my $e = new_editor(authtoken=>$auth);
     return $e->die_event unless $e->checkauth;
     if($self->api_name =~ /batch/) {
-        $conn->respond(post_checkin_backdate_circ_impl($e, $_, $backdate)) for $circ_id;
+        foreach my $c (@$circ_id) {
+            $conn->respond(post_checkin_backdate_circ_impl($e, $c, $backdate)) 
+        }
     } else {
         $conn->respond_complete(post_checkin_backdate_circ_impl($e, $circ_id, $backdate));
     }