mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-25 10:57:41 +02:00
parent
6377ed4bc7
commit
fd757054e7
@ -267,7 +267,9 @@ abstract class ObjectController extends ActionController
|
|||||||
(int) $id,
|
(int) $id,
|
||||||
$this->db()
|
$this->db()
|
||||||
);
|
);
|
||||||
} else {
|
} elseif ($this->getRequest()->isApiRequest()) {
|
||||||
|
$this->getResponse()->setHttpResponseCode(422);
|
||||||
|
|
||||||
throw new InvalidPropertyException(
|
throw new InvalidPropertyException(
|
||||||
'Cannot load object, missing parameters'
|
'Cannot load object, missing parameters'
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user