Compare commits

...

2 Commits

Author SHA1 Message Date
Steve Boyd
57bba2336a
Merge 89c36475e4 into cd1b9ed9f2 2024-10-02 05:51:26 +00:00
Steve Boyd
89c36475e4 FIX Set empty date to null 2024-10-02 18:50:47 +13:00

View File

@ -662,6 +662,8 @@ class SiteTreeContentReview extends Extension implements PermissionProvider
if (is_object($nextDate)) {
$this->owner->NextReviewDate = $nextDate->getValue();
} elseif ($nextDate === false) {
$this->owner->NextReviewDate = null;
} else {
$this->owner->NextReviewDate = $nextDate;
}