fix email fitler duplicate

This commit is contained in:
yuri
2019-08-19 11:44:25 +03:00
parent fe0dcc5342
commit 5c00a7ad43
@@ -41,5 +41,10 @@ class EmailFilter extends Record
if (!$this->getAcl()->check($entity, 'edit')) {
throw new Forbidden();
}
if ($entity->get('isGlobal')) {
$entity->set('parentId', null);
$entity->set('parentType', null);
}
}
}