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:
Johannes Meyer 2013-08-30 10:37:32 +02:00 committed by Jannis Moßhammer
parent 14b56151aa
commit 4d040fd761
2 changed files with 1 additions and 5 deletions

View File

@ -156,10 +156,7 @@ class LoggingForm extends Form
'label' => 'Debug Log Path',
'required' => $this->shouldDisplayDebugLog($debug),
'condition' => $this->shouldDisplayDebugLog($debug),
'value' => $debug->get(
'target',
$this->getBaseDir() . '/var/log/icinga2.debug.log'
),
'value' => $debug->get('target', $this->getBaseDir() . '/var/log/icinga2.debug.log'),
'helptext' => 'Set the path to the debug log'
)
);

View File

@ -46,7 +46,6 @@ require_once BaseTestCase::$libDir . '/Util/DateTimeFactory.php';
// @codingStandardsIgnoreEnd
use \DateTimeZone;
use \Zend_Config;
use \Icinga\User\Preferences;
use \Zend_View_Helper_DateFormat;
use \Icinga\Util\DateTimeFactory;