mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
exceptions changes
This commit is contained in:
@@ -121,6 +121,10 @@ class ExternalAccount extends RecordBase
|
||||
/** @var string */
|
||||
$id = $request->getRouteParam('id');
|
||||
|
||||
if ($id === '') {
|
||||
throw new BadRequest();
|
||||
}
|
||||
|
||||
return $this->getRecordService()
|
||||
->read($id, ReadParams::create())
|
||||
->getValueMap();
|
||||
|
||||
Reference in New Issue
Block a user