Skip to content
Snippets Groups Projects
Verified Commit 51252202 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX Migrate sendmail entityId

parent 7cb02f77
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,8 @@ foreach ($customs as $custom) {
if (empty($sender[1])) {
$sender = ['email' => $sender[0]];
} else {
$sender = ['email' => $sender[1], 'entityId' => $sender[0]];
$entity = \Entity\models\EntityModel::getByEntityId(['entityId' => $sender[0], 'select' => ['id']]);
$sender = ['email' => $sender[1], 'entityId' => $entity['id']];
}
$recipients = explode(',', $sendmail['to_list']);
$cc = explode(',', $sendmail['cc_list']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment