Skip to content
Snippets Groups Projects
Commit 5a522b0e authored by Uma's avatar Uma
Browse files

Merge branch 'comment_mentions' into 'master'

Fixes #1402 mentions without username

See merge request !690
parents d35f659b 76e88077
No related branches found
No related tags found
No related merge requests found
......@@ -38,8 +38,10 @@ class Vtiger_MentionedUsers_Action extends Vtiger_Action_Controller {
unset($mentionedUsers[$key]);
}
$usersString = '@'.implode(' @', $mentionedUsers);
$mentionedUsersData['usersString'] = $usersString.' ';
if(!empty($mentionedUsers)){
$usersString = '@'.implode(' @', $mentionedUsers);
$mentionedUsersData['usersString'] = $usersString.' ';
}
$response = new Vtiger_Response();
$response->setResult($mentionedUsersData);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment