From 6c2871de0ce15f3724b5fc4d39537cfed5a7ed3b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 31 Mar 2017 14:10:45 +1300 Subject: [PATCH] Use new DateField->setHTML5() See https://github.com/silverstripe/silverstripe-framework/issues/6626 --- code/Controllers/CMSMain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Controllers/CMSMain.php b/code/Controllers/CMSMain.php index 8ea0251b40..dde45200c6 100644 --- a/code/Controllers/CMSMain.php +++ b/code/Controllers/CMSMain.php @@ -432,12 +432,12 @@ public function SearchForm() 'q[LastEditedFrom]', _t('CMSSearch.FILTERDATEFROM', 'From') ); - $dateFrom->setShowCalendar(true); + $dateFrom->setHTML5(true); $dateTo = new DateField( 'q[LastEditedTo]', _t('CMSSearch.FILTERDATETO', 'To') ); - $dateTo->setShowCalendar(true); + $dateTo->setHTML5(true); $pageFilter = new DropdownField( 'q[FilterClass]', _t('CMSMain.PAGES', 'Page status'),