Adjust command forms and tests
Made those command forms using the DateTimePicker element compatible with its new validation. refs #4581
This commit is contained in:
parent
14b56151aa
commit
4d040fd761
|
@ -156,10 +156,7 @@ class LoggingForm extends Form
|
||||||
'label' => 'Debug Log Path',
|
'label' => 'Debug Log Path',
|
||||||
'required' => $this->shouldDisplayDebugLog($debug),
|
'required' => $this->shouldDisplayDebugLog($debug),
|
||||||
'condition' => $this->shouldDisplayDebugLog($debug),
|
'condition' => $this->shouldDisplayDebugLog($debug),
|
||||||
'value' => $debug->get(
|
'value' => $debug->get('target', $this->getBaseDir() . '/var/log/icinga2.debug.log'),
|
||||||
'target',
|
|
||||||
$this->getBaseDir() . '/var/log/icinga2.debug.log'
|
|
||||||
),
|
|
||||||
'helptext' => 'Set the path to the debug log'
|
'helptext' => 'Set the path to the debug log'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -46,7 +46,6 @@ require_once BaseTestCase::$libDir . '/Util/DateTimeFactory.php';
|
||||||
// @codingStandardsIgnoreEnd
|
// @codingStandardsIgnoreEnd
|
||||||
|
|
||||||
use \DateTimeZone;
|
use \DateTimeZone;
|
||||||
use \Zend_Config;
|
|
||||||
use \Icinga\User\Preferences;
|
use \Icinga\User\Preferences;
|
||||||
use \Zend_View_Helper_DateFormat;
|
use \Zend_View_Helper_DateFormat;
|
||||||
use \Icinga\Util\DateTimeFactory;
|
use \Icinga\Util\DateTimeFactory;
|
||||||
|
|
Loading…
Reference in New Issue