LP#1527342 Patron checkout history CSV export repair
authorBill Erickson <berickxx@gmail.com>
Tue, 23 Feb 2016 15:42:27 +0000 (10:42 -0500)
committerKathy Lussier <klussier@masslnc.org>
Fri, 26 Feb 2016 00:22:52 +0000 (19:22 -0500)
When exporting circ history as CSV, export history objects, not
(unrelated) circ objects.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm

index b3c15bf..ec0bada 100644 (file)
@@ -2681,9 +2681,7 @@ sub load_myopac_circ_history_export {
 
     $self->ctx->{csv} = $U->fire_object_event(
         undef, 
-        'circ.format.history.csv',
-        $e->search_action_circulation(
-            {id => [map {$_->id} @$circs]}, {substream =>1}),
+        'circ.format.history.csv', $circs,
         $self->editor->requestor->home_ou
     );