Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
best-practical
rt-extension-commandbymail
Commits
9ca419e0
Commit
9ca419e0
authored
Feb 07, 2013
by
Ruslan Zakirov
Browse files
pass value as email to AddWatcher when we couldn't load user
parent
06bee1c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lib/RT/Interface/Email/Filter/TakeAction.pm
lib/RT/Interface/Email/Filter/TakeAction.pm
+4
-1
No files found.
lib/RT/Interface/Email/Filter/TakeAction.pm
View file @
9ca419e0
...
...
@@ -317,7 +317,10 @@ sub GetCurrentUser {
$user
->
Load
(
$text
)
unless
$user
->
id
;
my
(
$val
,
$msg
)
=
$ticket_as_user
->
AddWatcher
(
Type
=>
$type
,
PrincipalId
=>
$user
->
PrincipalId
,
$user
->
id
?
(
PrincipalId
=>
$user
->
PrincipalId
)
:
(
Email
=>
$text
)
,
);
push
@
{
$results
{
'
Add
'
.
$type
}
},
{
value
=>
$text
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment