Skip to content

Commit a59b0e8

Browse files
committed
Set storemanager prop.
1 parent fc9559e commit a59b0e8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/code/Magento/Bundle/Model/Option/SaveAction.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function __construct(
6464
$this->metadataPool = $metadataPool;
6565
$this->type = $type;
6666
$this->linkManagement = $linkManagement;
67+
$this->storeManager = $storeManager;
6768
}
6869

6970
/**

app/code/Magento/Bundle/Model/Selection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function _construct()
7676
public function beforeSave()
7777
{
7878
if (!$this->_catalogData->isPriceGlobal() && $this->getWebsiteId()) {
79-
$this->setData('website_selection_price_value', $this->getSelectionPriceValue());
79+
$this->setData('tmp_selection_price_value', $this->getSelectionPriceValue());
8080
$this->setSelectionPriceValue($this->getOrigData('selection_price_value'));
8181
}
8282
parent::beforeSave();
@@ -90,8 +90,8 @@ public function beforeSave()
9090
public function afterSave()
9191
{
9292
if (!$this->_catalogData->isPriceGlobal() && $this->getWebsiteId()) {
93-
if (null !== $this->getData('website_selection_price_value')) {
94-
$this->setSelectionPriceValue($this->getData('website_selection_price_value'));
93+
if (null !== $this->getData('tmp_selection_price_value')) {
94+
$this->setSelectionPriceValue($this->getData('tmp_selection_price_value'));
9595
}
9696
$this->getResource()->saveSelectionPrice($this);
9797

0 commit comments

Comments
 (0)