mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 15:05:47 +00:00
FIX Set empty date to null
This commit is contained in:
parent
cd1b9ed9f2
commit
89c36475e4
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user