[Rt-commit] rt branch, 4.4/handle-action-pass-currentuser, created. rt-4.4.0-71-g0ead601
Jim Brandt
jbrandt at bestpractical.com
Tue Mar 29 10:33:20 EDT 2016
The branch, 4.4/handle-action-pass-currentuser has been created
at 0ead601ea9e5649412586e20adf9c958bd42cf3b (commit)
- Log -----------------------------------------------------------------
commit 0ead601ea9e5649412586e20adf9c958bd42cf3b
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Tue Mar 29 10:30:36 2016 -0400
Pass CurrentUser to HandleAction methods
CurrentUser is often needed for mail actions, so pass
it as a parameter to HandleAction methods. Also makes
the code consistent with the Mail plugins documentation
which lists CurrentUser as a passed parameter.
diff --git a/lib/RT/Interface/Email.pm b/lib/RT/Interface/Email.pm
index b8da7ff..7ad978f 100644
--- a/lib/RT/Interface/Email.pm
+++ b/lib/RT/Interface/Email.pm
@@ -248,6 +248,7 @@ sub Gateway {
Action => $action,
Subject => $Subject,
Message => $Message,
+ CurrentUser => $CurrentUser,
Ticket => $Ticket,
TicketId => $args{ticket},
Queue => $SystemQueueObj,
-----------------------------------------------------------------------
More information about the rt-commit
mailing list