Skip to content

Commit 514a97d

Browse files
committed
MC-42215: Some item cannot be saved - Make sure the To Date is later than or the same as the From Date
- fix
1 parent 212d69a commit 514a97d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Model/Attribute/Backend/Startdate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
*
10-
* Speical Start Date attribute backend
10+
* Special Start Date attribute backend
1111
*
1212
* @api
1313
*
@@ -83,7 +83,7 @@ public function validate($object)
8383
$attr = $this->getAttribute();
8484
$maxDate = $attr->getMaxValue();
8585
$startDate = $this->_getValueForSave($object);
86-
if ($startDate === false) {
86+
if ($startDate === false || $startDate === null) {
8787
return true;
8888
}
8989

0 commit comments

Comments
 (0)