File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
app/code/Magento/Bundle/Model Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ public function __construct(
64
64
$ this ->metadataPool = $ metadataPool ;
65
65
$ this ->type = $ type ;
66
66
$ this ->linkManagement = $ linkManagement ;
67
+ $ this ->storeManager = $ storeManager ;
67
68
}
68
69
69
70
/**
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ protected function _construct()
76
76
public function beforeSave ()
77
77
{
78
78
if (!$ this ->_catalogData ->isPriceGlobal () && $ this ->getWebsiteId ()) {
79
- $ this ->setData ('website_selection_price_value ' , $ this ->getSelectionPriceValue ());
79
+ $ this ->setData ('tmp_selection_price_value ' , $ this ->getSelectionPriceValue ());
80
80
$ this ->setSelectionPriceValue ($ this ->getOrigData ('selection_price_value ' ));
81
81
}
82
82
parent ::beforeSave ();
@@ -90,8 +90,8 @@ public function beforeSave()
90
90
public function afterSave ()
91
91
{
92
92
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 ' ));
95
95
}
96
96
$ this ->getResource ()->saveSelectionPrice ($ this );
97
97
You can’t perform that action at this time.
0 commit comments