### Eclipse Workspace Patch 1.0
#P igeworkspace42
Index: typo3/sysext/version/mod2/index.php
===================================================================
--- typo3/sysext/version/mod2/index.php (revision 291)
+++ typo3/sysext/version/mod2/index.php (working copy)
@@ -329,19 +329,19 @@
if($prevStageRecord['uid'] == '0') {
// The prev stage would be the standart edit stage use possible recipients from workspace config field adminusers
$workspaceRec = t3lib_BEfunc::getRecord('sys_workspace',$workspaceId);
- $prevUserRecords = t3lib_BEfunc::getUserNames('username, uid, email','AND uid IN ('.str_replace('be_users_','',$workspaceRec['adminusers']).')');
+ $prevUserRecords = t3lib_BEfunc::getUserNames('username, uid, email, realName','AND uid IN ('.str_replace('be_users_','',$workspaceRec['adminusers']).')');
if(!empty($prevUserRecords) && is_array($prevUserRecords)) {
foreach($prevUserRecords as $prevUserUid => $prevUserRecord) {
- $content .= '
'.$prevUserRecord['email'].'';
+ $content .= '
'.$prevUserRecord['email'].' ( '.$prevUserRecord['realName'].' ) ';
}
} else {
$content .= 'There are no recipients defined for this stage.';
}
} else {
- $prevUserRecords = t3lib_BEfunc::getUserNames('username, uid, email','AND uid IN ('.$prevStageRecord['responsible_persons'].')');
+ $prevUserRecords = t3lib_BEfunc::getUserNames('username, uid, email, realName','AND uid IN ('.$prevStageRecord['responsible_persons'].')');
if(!empty($prevUserRecords) && is_array($prevUserRecords)) {
foreach($prevUserRecords as $prevUserUid => $prevUserRecord) {
- $content .= '
'.$prevUserRecord['email'].'';
+ $content .= '
'.$prevUserRecord['email'].' ( '.$prevUserRecord['realName'].' ) ';
}
} else {
$content .= 'There are no recipients defined for this stage.';
@@ -375,19 +375,19 @@
if($nextStageRecord['uid'] == '10') {
// The prev stage would be the standart edit stage use possible recipients from workspace config field adminusers
$workspaceRec = t3lib_BEfunc::getRecord('sys_workspace',$workspaceId);
- $nextUserRecords = t3lib_BEfunc::getUserNames('username, uid, email','AND uid IN ('.str_replace('be_users_','',$workspaceRec['adminusers']).')');
+ $nextUserRecords = t3lib_BEfunc::getUserNames('username, uid, email, realName','AND uid IN ('.str_replace('be_users_','',$workspaceRec['adminusers']).')');
if(!empty($nextUserRecords) && is_array($nextUserRecords)) {
foreach($nextUserRecords as $nextUserUid => $nextUserRecord) {
- $content .= '
'.$nextUserRecord['email'].'';
+ $content .= '
'.$nextUserRecord['email'].' ( '.$nextUserRecord['realName'].' ) ';
}
} else {
$content .= 'There are no recipients defined for this stage.';
}
} else {
- $nextUserRecords = t3lib_BEfunc::getUserNames('username, uid, email','AND uid IN ('.$nextStageRecord['responsible_persons'].')');
+ $nextUserRecords = t3lib_BEfunc::getUserNames('username, uid, email, realName','AND uid IN ('.$nextStageRecord['responsible_persons'].')');
if(!empty($nextUserRecords) && is_array($nextUserRecords)) {
foreach($nextUserRecords as $nextUserUid => $nextUserRecord) {
- $content .= '
'.$nextUserRecord['email'].'';
+ $content .= '
'.$nextUserRecord['email'].' ( '.$nextUserRecord['realName'].' ) ';
}
} else {
$content .= 'There are no recipients defined for this stage.';