From: Jason Stephenson Date: Fri, 6 Sep 2019 15:09:18 +0000 (-0400) Subject: Lp 1842431: Split textcode and desc fields for AutoRenew user data X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=597ca89dc7015606ff0c3b3ab5d28f64765f941a;p=working%2FEvergreen.git Lp 1842431: Split textcode and desc fields for AutoRenew user data 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 --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/Circ/AutoRenew.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/Circ/AutoRenew.pm index f06adc85e1..aa51fac48b 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/Circ/AutoRenew.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/Circ/AutoRenew.pm @@ -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