HOR-1575
Envio de correos Intermediate Event no envia mail con una combinacion especifica HOR-1575 Envio de correos Intermediate Event no envia mail con una combinacion especifica HOR-1575 Envio de correos Intermediate Event no envia mail con una combinacion especifica HOR-1575 Envio de correos Intermediate Event no envia mail con una combinacion especifica HOR-1575 Envio de correos Intermediate Event no envia mail con una combinacion especifica
This commit is contained in:
@@ -68,6 +68,12 @@ class workspaceTools
|
||||
$stop = microtime(true);
|
||||
CLI::logging("<*> Database Upgrade Process took " . ($stop - $start) . " seconds.\n");
|
||||
|
||||
$start = microtime(true);
|
||||
CLI::logging("> Check Intermediate Email Event...\n");
|
||||
$this->checkIntermediateEmailEvent();
|
||||
$stop = microtime(true);
|
||||
CLI::logging("<*> Database Upgrade Process took " . ($stop - $start) . " seconds.\n");
|
||||
|
||||
$start = microtime(true);
|
||||
CLI::logging("> Verify enterprise old...\n");
|
||||
$this->verifyFilesOldEnterprise($workSpace);
|
||||
@@ -145,6 +151,22 @@ class workspaceTools
|
||||
CLI::logging("<*> Database Upgrade Structure Process took $final seconds.\n");
|
||||
}
|
||||
|
||||
public function checkIntermediateEmailEvent()
|
||||
{
|
||||
$oEmailEvent = new \ProcessMaker\BusinessModel\EmailEvent();
|
||||
$oEmailServer = new \ProcessMaker\BusinessModel\EmailServer();
|
||||
$oCriteria = $oEmailEvent->getEmailEventCriteriaEmailServer();
|
||||
$rsCriteria = \EmailServerPeer::doSelectRS($oCriteria);
|
||||
$rsCriteria->setFetchmode(\ResultSet::FETCHMODE_ASSOC);
|
||||
while ($rsCriteria->next()) {
|
||||
$row = $rsCriteria->getRow();
|
||||
$newUidData = $oEmailServer->getUidEmailServer($row['EMAIL_EVENT_FROM']);
|
||||
if (is_array($newUidData)) {
|
||||
$oEmailEvent->update($row['EMAIL_EVENT_UID'], $newUidData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Scan the db.php file for database information and return it as an array
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user