parent
6377ed4bc7
commit
fd757054e7
|
@ -267,7 +267,9 @@ abstract class ObjectController extends ActionController
|
|||
(int) $id,
|
||||
$this->db()
|
||||
);
|
||||
} else {
|
||||
} elseif ($this->getRequest()->isApiRequest()) {
|
||||
$this->getResponse()->setHttpResponseCode(422);
|
||||
|
||||
throw new InvalidPropertyException(
|
||||
'Cannot load object, missing parameters'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue