PMCORE-2091 PMFSendMessage sends 10 mails when deleting a case

This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-09-09 19:32:41 -04:00
parent e31ad1f404
commit c0b94a7ccf
2 changed files with 55 additions and 0 deletions

View File

@@ -336,6 +336,9 @@ class SpoolRun
private function updateSpoolStatus()
{
$oAppMessage = AppMessagePeer::retrieveByPK($this->spoolId);
if (empty($oAppMessage)) {
return;
}
if (is_array($this->fileData['attachments'])) {
$attachment = implode(",", $this->fileData['attachments']);
$oAppMessage->setappMsgAttach($attachment);