refs #2708
This commit is contained in:
Thomas Gelf 2023-07-30 20:11:38 +02:00
parent 26a4a10536
commit 165dd16713
2 changed files with 10 additions and 2 deletions

View File

@ -256,8 +256,16 @@ class IcingaDependencyForm extends DirectorObjectForm
]);
}
}
$this->addBoolean('ignore_on_error', [
'ignore' => true,
'label' => $this->translate('Ignore on error'),
'description' => $this->translate(
'Please do not set this to true, unless you really want to create rules that would otherwise fail'
. ' because of a matching assignment clause combined with no such parent'),
'order' => 80,
], false);
$elements = ['parent_host', 'child_host', 'parent_service', 'child_service'];
$elements = ['parent_host', 'child_host', 'parent_service', 'child_service', 'ignore_on_error'];
$this->addDisplayGroup($elements, 'related_objects', [
'decorators' => [
'FormElements',

View File

@ -110,7 +110,7 @@ class IcingaDependency extends IcingaObject implements ExportInterface
protected function renderSingleObjectHeader($to)
{
return sprintf(
"%s %s %s to %s {\n",
"%s %s %s to %s ignore_on_error {\n", // TODO: DB flag
$this->getObjectTypeName(),
$this->getType(),
c::renderString($this->getObjectName()),