showcalendar config method change

This commit is contained in:
Andrew Aitken-Fincham 2017-02-17 11:22:39 +00:00
parent 92004f803c
commit 141db8d472

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(