mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
MINOR: Fixes for unit tests
This commit is contained in:
parent
84a4ee477c
commit
a95e90e6f0
@ -50,8 +50,8 @@ class PagesDueForReviewReport extends SS_Report {
|
|||||||
$params->push(new DropdownField("OwnerID", 'Page owner', $map));
|
$params->push(new DropdownField("OwnerID", 'Page owner', $map));
|
||||||
}
|
}
|
||||||
|
|
||||||
$params->push($startDate = new CalendarDateField('ReviewDateAfter', 'Review date after or on (DD/MM/YYYY)'));
|
$params->push($startDate = new DateField('ReviewDateAfter', 'Review date after or on (DD/MM/YYYY)'));
|
||||||
$params->push($endDate = new CalendarDateField('ReviewDateBefore', 'Review date before or on (DD/MM/YYYY)', date('d/m/Y', strtotime('midnight'))));
|
$params->push($endDate = new DateField('ReviewDateBefore', 'Review date before or on (DD/MM/YYYY)', date('d/m/Y', strtotime('midnight'))));
|
||||||
$endDate->mustBeAfter($startDate->Name());
|
$endDate->mustBeAfter($startDate->Name());
|
||||||
$startDate->mustBeBefore($endDate->Name());
|
$startDate->mustBeBefore($endDate->Name());
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
|
|||||||
new HeaderField(_t('SiteTreeCMSWorkflow.REVIEWHEADER', "Content review"), 2),
|
new HeaderField(_t('SiteTreeCMSWorkflow.REVIEWHEADER', "Content review"), 2),
|
||||||
new DropdownField("OwnerID", _t("SiteTreeCMSWorkflow.PAGEOWNER",
|
new DropdownField("OwnerID", _t("SiteTreeCMSWorkflow.PAGEOWNER",
|
||||||
"Page owner (will be responsible for reviews)"), $cmsUsers->map('ID', 'Title', '(no owner)')),
|
"Page owner (will be responsible for reviews)"), $cmsUsers->map('ID', 'Title', '(no owner)')),
|
||||||
new CalendarDateField("NextReviewDate", _t("SiteTreeCMSWorkflow.NEXTREVIEWDATE",
|
new DateField("NextReviewDate", _t("SiteTreeCMSWorkflow.NEXTREVIEWDATE",
|
||||||
"Next review date (leave blank for no review)")),
|
"Next review date (leave blank for no review)")),
|
||||||
new DropdownField("ReviewPeriodDays", _t("SiteTreeCMSWorkflow.REVIEWFREQUENCY",
|
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(
|
"Review frequency (the review date will be set to this far in the future whenever the page is published.)"), array(
|
||||||
|
Loading…
Reference in New Issue
Block a user