mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
BUGFIX: when use 'showcalendar', both 'dateformat' and 'datavalueformat' need to be set to the right format as well so that DateField save the right value into DB
This commit is contained in:
parent
4c09ba132a
commit
1240467033
@ -42,7 +42,7 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
|
||||
DateField::create(
|
||||
"NextReviewDate",
|
||||
_t("SiteTreeCMSWorkflow.NEXTREVIEWDATE", "Next review date (leave blank for no review)")
|
||||
)->setConfig('showcalendar', true),
|
||||
)->setConfig('showcalendar', true)->setConfig('dateformat', 'yyyy-MM-dd')->setConfig('datavalueformat', 'yyyy-MM-dd'),
|
||||
new DropdownField("ReviewPeriodDays", _t("SiteTreeCMSWorkflow.REVIEWFREQUENCY",
|
||||
"Review frequency (the review date will be set to this far in the future whenever the page is published.)"), array(
|
||||
0 => "No automatic review date",
|
||||
|
Loading…
Reference in New Issue
Block a user