LP#1650807: fix rollover_phone_to_print.pl to ack failed calls
authorJosh Stompro <stomproj@larl.org>
Wed, 21 Dec 2016 19:57:32 +0000 (13:57 -0600)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 17 May 2017 12:39:53 +0000 (08:39 -0400)
This patch fixes a bug in rollover_phone_to_print.pl that kept
failed callfiles from being moved.

The list of new event ID's that the script created was being sent to the
mediator, which couldn't do anything with them.  The original event ID's
need to be sent to have those call files moved.

Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/support-scripts/rollover_phone_to_print.pl

index 6956283..c5da523 100755 (executable)
@@ -74,7 +74,7 @@ sub rollover_events_phone_to_print {
             $event->target
         )) {
             $logger->info("rollover created event $new_id from event " . $event->id);
-            push @$finished, $new_id;
+            push @$finished, $event->id;
         }
     }