[icinga-checkins] icinga.org: icingaweb2-module-director/bugfix/loop-templateresolver-11803: CommandForm: Make imports optional on commands

git at icinga.org git at icinga.org
Mon Oct 31 13:31:49 CET 2016

Module: icingaweb2-module-director
Branch: bugfix/loop-templateresolver-11803
Commit: 48c4ee7c23854b25272a26f2c0d34463673a28d3
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=48c4ee7c23854b25272a26f2c0d34463673a28d3

Author: Tobias von der Krone <tobias.vonderkrone at profitbricks.com>
Date:   Tue Oct 25 13:28:54 2016 +0200

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

fixes #12979


 application/forms/IcingaCommandForm.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/forms/IcingaCommandForm.php b/application/forms/IcingaCommandForm.php
index 9848487..0e097c1 100644
--- a/application/forms/IcingaCommandForm.php
+++ b/application/forms/IcingaCommandForm.php
@@ -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'),

More information about the icinga-checkins mailing list