LP#1198465 generate fines by ID repair
authorBill Erickson <berickxx@gmail.com>
Fri, 20 Feb 2015 17:04:51 +0000 (12:04 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 20 Feb 2015 17:06:45 +0000 (12:06 -0500)
The latest fine generator uses ID-based transaction lookup.
Avoid calling ->to_fieldmapper on IDs.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm

index 8d272a0..3d592d6 100644 (file)
@@ -1012,7 +1012,7 @@ sub generate_fines {
             $circs = $editor->search_booking_reservation->search_where( { id => $circ_id, return_time => undef, cancel_time => undef } );
         }
     } else {
-        $circs = [map { $_->to_fieldmapper } overdue_circs(undef, 1, 1, 1)];
+        $circs = [overdue_circs(undef, 1, 1, 1)];
     }
 
     return OpenILS::Application::Circ::CircCommon->generate_fines({circs => $circs, conn => $client})