fix email update

This commit is contained in:
yuri
2016-07-25 17:07:14 +03:00
parent 2db6eaa344
commit 7736f6cd76
+3 -1
View File
@@ -704,7 +704,9 @@ class Email extends Record
if ($entity->isManuallyArchived()) return;
$attributList = $entity;
if ($entity->get('status') === 'Draft') return;
if ($entity->get('status') === 'Sending' && $entity->getFetched('status') === 'Draft') return;
foreach ($entity->getAttributeList() as $attribute) {
if (in_array($attribute, $this->allowedForUpdateAttributeList)) return;