mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-15 23:08:11 +02:00
parent
26a4a10536
commit
165dd16713
@ -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',
|
||||
|
@ -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()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user