diff --git a/application/Espo/Services/EmailFilter.php b/application/Espo/Services/EmailFilter.php index bc3f9dea7f..00ea52cfea 100644 --- a/application/Espo/Services/EmailFilter.php +++ b/application/Espo/Services/EmailFilter.php @@ -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); + } } }