Merge pull request #81 from alvarocs/BUG-4986

BUG 4986 Email notification is not working
This commit is contained in:
julceslauhub
2012-06-18 20:32:07 -07:00
2 changed files with 10 additions and 2 deletions

View File

@@ -1699,7 +1699,12 @@ class wsBase
$oUser = new Users();
$aUser = $oUser->load($userId);
$sFromName = '"' . $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . '"';
if (trim($aUser['USR_EMAIL'])=='') {
$aUser['USR_EMAIL'] = 'info@'.$_SERVER['HTTP_HOST'];
}
$sFromName = '"' . $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . '" <'.$aUser['USR_EMAIL'].'>';
$oCase->sendNotifications($appdel['TAS_UID'], $nextDelegations, $appFields['APP_DATA'], $caseId, $delIndex, $sFromName);
//Save data - Start