Skip to content

Commit

Permalink
FIX Set empty date to null
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Oct 2, 2024
1 parent cd1b9ed commit 89c3647
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Extensions/SiteTreeContentReview.php
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,8 @@ protected function setDefaultReviewDateForInherited()

if (is_object($nextDate)) {
$this->owner->NextReviewDate = $nextDate->getValue();
} elseif ($nextDate === false) {
$this->owner->NextReviewDate = null;
} else {
$this->owner->NextReviewDate = $nextDate;
}
Expand Down

0 comments on commit 89c3647

Please sign in to comment.