mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-25 18:59:05 +02:00
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…
x
Reference in New Issue
Block a user