This commit is contained in:
Paula Quispe
2018-08-23 10:12:09 -04:00
parent 88f050d8e6
commit 6782950ee6
2 changed files with 15 additions and 12 deletions

View File

@@ -466,8 +466,17 @@ class EmailEvent
}
$arrayData = $this->existsEvent($prj_uid, $eventUid);
if (sizeof($arrayData)) {
$oEmailServer = new EmailServer();
$configEmailData = $oEmailServer->getEmailServer($arrayData[7]);
$emailServer = new EmailServer();
if (empty($arrayData[7])){
$configEmailData = $emailServer->getEmailServerDefault();
//We will to show a message, if is not defined the email server default
if(empty($configEmailData)){
$emailServer->throwExceptionIfNotExistsEmailServer('', 'MESS_UID');
}
} else {
$configEmailData = $emailServer->getEmailServer($arrayData[7]);
}
$emailGroupTo = [];
$emailTo = '';
$prfUid = $arrayData[6];