Merge pull request #428 from andrewandante/FIX/datepicker

showcalendar config method change
This commit is contained in:
Daniel Hensby 2017-02-19 15:34:35 +00:00 committed by GitHub
commit 288a669e49

View File

@ -266,7 +266,7 @@ class BlogPost extends Page
}
$publishDate = DatetimeField::create('PublishDate', _t('BlogPost.PublishDate', 'Publish Date'));
$publishDate->getDateField()->setConfig('showcalendar', true);
$publishDate->getDateField()->setShowCalendar(true);
if (!$this->PublishDate) {
$publishDate->setDescription(
_t(