diff --git a/application/Espo/Services/Email.php b/application/Espo/Services/Email.php index 50896d74fe..6f98698c7d 100644 --- a/application/Espo/Services/Email.php +++ b/application/Espo/Services/Email.php @@ -36,7 +36,7 @@ class Email extends Record $this->dependencies[] = 'crypt'; } - protected $fetchEntityBeforeUpdate = true; + protected $getEntityBeforeUpdate = true; protected function getFileManager() { diff --git a/application/Espo/Services/Record.php b/application/Espo/Services/Record.php index 54c55a5a3b..dcb870db08 100644 --- a/application/Espo/Services/Record.php +++ b/application/Espo/Services/Record.php @@ -47,7 +47,7 @@ class Record extends \Espo\Core\Services\Base 'preferences' ); - protected $fetchEntityBeforeUpdate = false; + protected $getEntityBeforeUpdate = false; protected $entityName; @@ -332,7 +332,7 @@ class Record extends \Espo\Core\Services\Base $this->filterInput($data); $this->handleInput($data); - if ($this->fetchEntityBeforeUpdate) { + if ($this->getEntityBeforeUpdate) { $entity = $this->getEntity($id); } else { $entity = $this->getRepository()->get($id);