Bug #11531 ยป 11531.patch
Classes/ExtDirect/ActionHandler.php (working copy) | ||
---|---|---|
$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;
|
||
}
|
||
... | ... | |
/**
|
||
* Gets all assigned recipients of a particular stage.
|
||
*
|
||
*
|
||
* @param integer $stage
|
||
* @return array
|
||
*/
|
||
... | ... | |
$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;
|
Classes/Service/Stages.php (working copy) | ||
---|---|---|
if (!empty($userRecords) && is_array($userRecords)) {
|
||
foreach ($userRecords as $userUid => $userRecord) {
|
||
$recipientArray[$userUid] = $userRecord['email'] . ' ( ' . $userRecord['realName'] . ' )';
|
||
$recipientArray[$userUid] = $userRecord;
|
||
}
|
||
}
|
||
return $recipientArray;
|