Lp 1842431: Split textcode and desc fields for AutoRenew user data user/mmorgan/lp1842431_fix_renewal_failure_reason_take_two
authorJason Stephenson <jason@sigio.com>
Fri, 6 Sep 2019 15:09:18 +0000 (11:09 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Fri, 13 Sep 2019 21:08:29 +0000 (17:08 -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>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/Circ/AutoRenew.pm

index e09a863..19a26b7 100644 (file)
@@ -73,6 +73,8 @@ sub handler {
             reason => !$is_renewed ? $evt->{desc} : '',
             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