mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
MINOR Using DateField in CMSMain->SiteTreeFilterDateField(), as CalendarDateField is now deprecated
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@99363 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5484aaf01a
commit
12761de90b
@ -213,7 +213,8 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
return $filter_options;
|
return $filter_options;
|
||||||
}
|
}
|
||||||
public function SiteTreeFilterDateField() {
|
public function SiteTreeFilterDateField() {
|
||||||
$dateField = new CalendarDateField('SiteTreeFilterDate');
|
$dateField = new DateField('SiteTreeFilterDate');
|
||||||
|
$dateField->setConfig('showcalendar', true);
|
||||||
return $dateField->Field();
|
return $dateField->Field();
|
||||||
}
|
}
|
||||||
public function SiteTreeFilterPageTypeField() {
|
public function SiteTreeFilterPageTypeField() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user