From: phasefx Date: Wed, 21 Oct 2009 08:23:34 +0000 (+0000) Subject: fix a bug where only the first circ_id given was being backdated with the .batch... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4e3e959b001d0b45b74344688b77cbb643943d56;p=evergreen%2Fmasslnc.git fix a bug where only the first circ_id given was being backdated with the .batch method git-svn-id: svn://svn.open-ils.org/ILS/trunk@14514 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm index 7415181090..6dd9a5662c 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm @@ -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)); }