From 89c36475e4660fc89bdb546cf02654c96d5b20fb Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 2 Oct 2024 18:50:47 +1300 Subject: [PATCH] FIX Set empty date to null --- src/Extensions/SiteTreeContentReview.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Extensions/SiteTreeContentReview.php b/src/Extensions/SiteTreeContentReview.php index 81cb82f..6869d66 100644 --- a/src/Extensions/SiteTreeContentReview.php +++ b/src/Extensions/SiteTreeContentReview.php @@ -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; }