Lp 1842431: Split textcode and desc fields for AutoRenew user data user/dyrcona/lp1842431-autorenew-split-event-textcode-description
authorJason Stephenson <jason@sigio.com>
Fri, 6 Sep 2019 15:09:18 +0000 (11:09 -0400)
committerJason Stephenson <jason@sigio.com>
Sat, 7 Sep 2019 12:02:48 +0000 (08:02 -0400)
Split the event textcode and desc fields into textcode and description
fields, respectively, in the AutoRenew reactor's user data, but also
leave the reason field alone.  This permits sites to show only the
description of the event if they want.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/Circ/AutoRenew.pm

index f06adc8..aa51fac 100644 (file)
@@ -73,6 +73,8 @@ sub handler {
             reason => !$is_renewed ? sprintf("%s : %s", $evt->{textcode}, substr($evt->{desc}, 0, 140)) : '',
             new_due_date => $is_renewed ? $evt->{payload}->{circ}->due_date : '',
             old_due_date => !$is_renewed ? $_->due_date() : '',
+            textcode => $evt->{textcode},
+            description => $evt->{desc},
         );
 
         # Create the event from the source circ instead of the