Skip to content

Commit 7dd0162

Browse files
committed
MAGETWO-52577: [GitHub] Set Product as New from Date and Design Active From is set when setting Special Price #4387
1 parent a24a47f commit 7dd0162

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ protected function _getValueForSave($object)
4444
{
4545
$attributeName = $this->getAttribute()->getName();
4646
$startDate = $object->getData($attributeName);
47-
if ($startDate === false) {
48-
return false;
49-
}
5047

5148
return $startDate;
5249
}

app/code/Magento/Catalog/Observer/SetSpecialPriceStartDateObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class SetSpecialPriceStartDateObserver implements ObserverInterface
1212
/**
1313
* @var \Magento\Framework\Stdlib\DateTime\TimezoneInterface
1414
*/
15-
protected $localeDate;
15+
private $localeDate;
1616

1717
/**
1818
* @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate

0 commit comments

Comments
 (0)