CommandForm: Make imports optional on commands

Specifying an import should be optional for Commands. You have to
specify the execution method, e.g. "Plugin Check Command", anyway so
that the correct base template will be imported by icinga director
automatically.

fixes #12979
This commit is contained in:
Tobias von der Krone 2016-10-25 13:28:54 +02:00 committed by Thomas Gelf
parent 55e0ebd02d
commit 48c4ee7c23

View File

@ -49,7 +49,7 @@ class IcingaCommandForm extends DirectorObjectForm
'description' => $this->translate('Identifier for the Icinga command you are going to create')
));
$this->addImportsElement();
$this->addImportsElement(false);
$this->addElement('text', 'command', array(
'label' => $this->translate('Command'),