FIX: Clear non-recurring custom date when reviewing

This commit is contained in:
Jules 2020-10-29 14:40:29 +13:00 committed by Daniel Hensby
parent 74945e0123
commit ebcfc483be
No known key found for this signature in database
GPG Key ID: D8DEBC4C8E7BC8B9

View File

@ -495,6 +495,11 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
$this->owner->write();
}
if ($options && $options->ReviewPeriodDays == 0) {
$this->owner->NextReviewDate = null;
$this->owner->write();
}
return (bool)$nextDateTimestamp;
}