Skip to content

Commit 1b7b9ca

Browse files
committed
MAGETWO-60140: [Backport] Disable child product doesn't work in Configurable variations grid - for 2.1.x
1 parent c1b7710 commit 1b7b9ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/components/dynamic-rows-configurable.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ define([
3232
identificationProperty: 'id',
3333
'attribute_set_id': '',
3434
attributesTmp: [],
35+
changedFlag: 'was_changed',
3536
listens: {
3637
'insertDataFromGrid': 'processingInsertDataFromGrid',
3738
'insertDataFromWizard': 'processingInsertDataFromWizard',
@@ -391,9 +392,9 @@ define([
391392
'small_image': row['small_image'],
392393
image: row.image,
393394
'thumbnail': row.thumbnail,
394-
'attributes': attributesText,
395-
'was_changed': true
395+
'attributes': attributesText
396396
};
397+
product[this.changedFlag] = true;
397398
product[this.canEditField] = row.editable;
398399
product[this.newProductField] = row.newProduct;
399400
tmpArray.push(product);
@@ -515,6 +516,7 @@ define([
515516
tmpArray[rowIndex].status = 1;
516517
}
517518

519+
tmpArray[rowIndex][this.changedFlag] = true;
518520
this.unionInsertData(tmpArray);
519521
}
520522
});

0 commit comments

Comments
 (0)