fix throw

This commit is contained in:
yuri
2018-01-04 11:42:08 +02:00
parent bbbec3b54a
commit fbecb09d45
+2 -2
View File
@@ -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);