* @assignedTo when object has assignedTo.

This commit is contained in:
daitingting
2018-03-20 15:09:33 +08:00
parent ca63164bc9
commit 04b123ac7d
+5 -8
View File
@@ -227,16 +227,13 @@ class webhookModel extends model
$mobile = '';
$email = '';
if(in_array($actionType, array('assigned', 'resolved', 'bugconfirmed')))
foreach($users as $user)
{
foreach($users as $user)
if($user->account == $object->assignedTo)
{
if($user->account == $object->assignedTo)
{
$mobile = $user->mobile;
$email = $user->email;
break;
}
$mobile = $user->mobile;
$email = $user->email;
break;
}
}
$action->text = $text;