Index: Classes/ExtDirect/ActionHandler.php =================================================================== --- Classes/ExtDirect/ActionHandler.php (revision 3359) +++ Classes/ExtDirect/ActionHandler.php (working copy) @@ -246,10 +246,16 @@ $additionalRecipients = array(); } - $finalRecipients = array_unique( + $allRecipients = array_unique( array_merge($recipients, $additionalRecipients) ); + foreach ($allRecipients as $recipient) { + if (t3lib_div::validEmail($recipient)) { + $finalRecipients[] = $recipient; + } + } + return $finalRecipients; } @@ -443,7 +449,7 @@ /** * Gets all assigned recipients of a particular stage. - * + * * @param integer $stage * @return array */ @@ -452,12 +458,15 @@ $recipients = $this->getStageService()->getResponsibleBeUser($stage); - foreach ($recipients as $id => $name) { - $result[] = array( - 'boxLabel' => $name, - 'name' => 'receipients-' . $id, - 'checked' => TRUE, - ); + foreach ($recipients as $id => $user) { + if (t3lib_div::validEmail($user['email'])) { + $name = $user['realName'] ? $user['realName'] : $user['username']; + $result[] = array( + 'boxLabel' => sprintf('%s (%s)', $name, $user['email']), + 'name' => 'receipients-' . $id, + 'checked' => TRUE, + ); + } } return $result; Index: Classes/Service/Stages.php =================================================================== --- Classes/Service/Stages.php (revision 3359) +++ Classes/Service/Stages.php (working copy) @@ -416,7 +416,7 @@ if (!empty($userRecords) && is_array($userRecords)) { foreach ($userRecords as $userUid => $userRecord) { - $recipientArray[$userUid] = $userRecord['email'] . ' ( ' . $userRecord['realName'] . ' )'; + $recipientArray[$userUid] = $userRecord; } } return $recipientArray;