From 8bb49d2363b2d6cacd24abe906606dc20a9ff4cf Mon Sep 17 00:00:00 2001 From: Brian Conry Date: Wed, 3 Aug 2022 15:37:45 -0500 Subject: Unify the BeforeActionList Callback API Two instances of the BeforeActionList Callback were missing the Actions parameter. This change adds the parameter on the calling side. Implementations of the callback will be unaffected by the addition of the new parameter, but they now have the option of modifying the list of user-reported messages in /Ticket/Reminders.html and /Ticket/Update.html the same as they already can in /Ticket/ModifyLinks.html, /Ticket/ModifyAll.html, /Ticket/ModifyDates.html, /Ticket/Modify.html, /Ticket/Display.html, /Ticket/ModifyPeople.html, and /Ticket/Forward.html. --- share/html/Ticket/Reminders.html | 2 +- share/html/Ticket/Update.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/html/Ticket/Reminders.html b/share/html/Ticket/Reminders.html index 953130f853..7248fd8778 100644 --- a/share/html/Ticket/Reminders.html +++ b/share/html/Ticket/Reminders.html @@ -48,7 +48,7 @@ <& /Elements/Header, Title => loc("Reminders for ticket #[_1]: [_2]", $Ticket->Id, $Ticket->Subject) &> <& /Elements/Tabs &> -% $m->callback(CallbackName => 'BeforeActionList', ARGSRef => \%ARGS, Ticket => $Ticket); +% $m->callback(CallbackName => 'BeforeActionList', ARGSRef => \%ARGS, Ticket => $Ticket, Actions => \@actions); <& /Elements/ListActions, actions => \@actions &> diff --git a/share/html/Ticket/Update.html b/share/html/Ticket/Update.html index 31a5b6a9bc..0fec498b27 100644 --- a/share/html/Ticket/Update.html +++ b/share/html/Ticket/Update.html @@ -48,7 +48,7 @@ <& /Elements/Header, Title => $title &> <& /Elements/Tabs &> -% $m->callback(CallbackName => 'BeforeActionList', ARGSRef => \%ARGS, Ticket => $TicketObj); +% $m->callback(CallbackName => 'BeforeActionList', ARGSRef => \%ARGS, Ticket => $TicketObj, results => \@results); <& /Elements/ListActions, actions => \@results &>
-- cgit v1.2.3