setShowCalendar is no longer a method

This commit is contained in:
Andrew Foster 2017-04-18 17:02:27 +10:00
parent 3b45728ff3
commit d1eb591ea5

View File

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