From f80284d490714de7f0b994f0e0266f00b42c0306 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 2 Dec 2015 02:45:16 +0100 Subject: [PATCH] IcingaCommandForm: don't require command for templates --- 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 719f2480..ce8d1549 100644 --- a/application/forms/IcingaCommandForm.php +++ b/application/forms/IcingaCommandForm.php @@ -35,7 +35,7 @@ class IcingaCommandForm extends DirectorObjectForm $this->addElement('text', 'command', array( 'label' => $this->translate('Command'), - 'required' => true, + 'required' => ! $this->isTemplate(), 'description' => $this->translate('The command Icinga should run. Absolute paths are accepted as provided, relative paths are prefixed with "PluginDir + ", similar Constant prefixes are allowed. Spaces will lead to separation of command path and standalone arguments. Please note that this means that we do not support spaces in plugin names and paths right now.') ));