mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-03 04:09:35 -05:00
MoveNodeForm: Respond with a status of 400 in case of a ModificationError
This commit is contained in:
parent
987f576d76
commit
ccdadf68f2
1 changed files with 3 additions and 1 deletions
|
|
@ -154,7 +154,9 @@ class MoveNodeForm extends QuickForm
|
|||
$this->parentNode !== null ? $this->parentNode->getName() : null
|
||||
);
|
||||
} catch (ModificationError $e) {
|
||||
$this->notifyError($e->getMessage())
|
||||
$this->notifyError($e->getMessage());
|
||||
Icinga::app()->getResponse()
|
||||
->setHttpResponseCode(400)
|
||||
->redirectAndExit($this->getSuccessUrl());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue