mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
FIX: Clear non-recurring custom date when reviewing
This commit is contained in:
parent
74945e0123
commit
ebcfc483be
@ -495,6 +495,11 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
|
|||||||
$this->owner->write();
|
$this->owner->write();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($options && $options->ReviewPeriodDays == 0) {
|
||||||
|
$this->owner->NextReviewDate = null;
|
||||||
|
$this->owner->write();
|
||||||
|
}
|
||||||
|
|
||||||
return (bool)$nextDateTimestamp;
|
return (bool)$nextDateTimestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user