[Rt-commit] rt branch 5.0/unify-BeforeActionList-callback-api created. rt-5.0.3-77-g8bb49d2363

BPS Git Server git at git.bestpractical.com
Thu Aug 11 17:57:14 UTC 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/unify-BeforeActionList-callback-api has been created
        at  8bb49d2363b2d6cacd24abe906606dc20a9ff4cf (commit)

- Log -----------------------------------------------------------------
commit 8bb49d2363b2d6cacd24abe906606dc20a9ff4cf
Author: Brian Conry <bconry at bestpractical.com>
Date:   Wed Aug 3 15:37:45 2022 -0500

    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.

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 &>
 
 <div>

-----------------------------------------------------------------------


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list