diff --git a/application/Espo/Services/Record.php b/application/Espo/Services/Record.php index 13970e1753..4eab62ca3a 100644 --- a/application/Espo/Services/Record.php +++ b/application/Espo/Services/Record.php @@ -589,7 +589,7 @@ class Record extends \Espo\Core\Services\Base unset($data->deleted); if (empty($id)) { - throw BadRequest(); + throw new BadRequest(); } $this->filterInput($data); @@ -716,7 +716,7 @@ class Record extends \Espo\Core\Services\Base public function deleteEntity($id) { if (empty($id)) { - throw BadRequest(); + throw new BadRequest(); } $entity = $this->getRepository()->get($id);