Fixed DatetimeField API usage

See https://github.com/silverstripe/silverstripe-framework/issues/6626
This commit is contained in:
Ingo Schommer 2017-04-03 20:20:07 +12:00
parent 8826a70e4d
commit 7982a853e9

View File

@ -255,13 +255,6 @@ class TestSessionController extends Controller
new HiddenField('flush', null, 1)
);
$textfield->setAttribute('placeholder', 'Example: framework/tests/security/MemberTest.yml');
$datetimeField->getDateField()
->setConfig('dateformat', 'yyyy-MM-dd')
->setConfig('showcalendar', true)
->setAttribute('placeholder', 'Date (yyyy-MM-dd)');
$datetimeField->getTimeField()
->setConfig('timeformat', 'HH:mm:ss')
->setAttribute('placeholder', 'Time (HH:mm:ss)');
$datetimeField->setValue((isset($testState->datetime) ? $testState->datetime : null));
$this->extend('updateBaseFields', $fields);