File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
app/code/Magento/Catalog/Model
ResourceModel/Product/Option Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -200,14 +200,7 @@ public function saveValues()
200
200
'store_id ' ,
201
201
$ this ->getOption ()->getStoreId ()
202
202
);
203
-
204
- if ($ this ->getData ('option_type_id ' ) == '-1 ' ) {
205
- //change to 0
206
- $ this ->unsetData ('option_type_id ' );
207
- } else {
208
- $ this ->setId ($ this ->getData ('option_type_id ' ));
209
- }
210
-
203
+ $ this ->unsetData ('option_type_id ' );
211
204
if ($ this ->getData ('is_delete ' ) == '1 ' ) {
212
205
if ($ this ->getId ()) {
213
206
$ this ->deleteValues ($ this ->getId ());
Original file line number Diff line number Diff line change @@ -210,9 +210,7 @@ public function addValuesToResult($storeId = null)
210
210
foreach ($ values as $ value ) {
211
211
$ optionId = $ value ->getOptionId ();
212
212
if ($ this ->getItemById ($ optionId )) {
213
- // @TODO fix with new storing mechanizm
214
213
$ this ->getItemById ($ optionId )->addValue ($ value );
215
- $ value ->setId (null );
216
214
$ value ->setOption ($ this ->getItemById ($ optionId ));
217
215
}
218
216
}
You can’t perform that action at this time.
0 commit comments