Skip to content

Commit f85d984

Browse files
committed
MC-37069: Configurable Products with large quantities of children cannot be opened
1 parent f97a103 commit f85d984

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ define([
242242
this.generateAssociatedProducts();
243243
},
244244

245+
/**
246+
* Set initial property to records data
247+
*
248+
* @returns {Object} Chainable.
249+
*/
245250
setInitialProperty: function () {
246251
return this;
247252
},

app/code/Magento/Ui/view/base/web/js/dynamic-rows/dynamic-rows.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,7 @@ define([
11271127
*/
11281128
setDifferedFromDefault: function () {
11291129
var recordData;
1130+
11301131
if (this.default) {
11311132
recordData = utils.copy(this.recordData());
11321133

dev/tests/js/jasmine/tests/app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/components/dynamic-rows-configurable.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ define([
4141
})
4242
};
4343

44-
model.getChildItems = jasmine.createSpy().and.returnValue($(''));
4544
model.source = sourceMock;
4645
model.processingUnionInsertData(mockData);
4746
expect(model.source.get).toHaveBeenCalled();
48-
expect(model.getChildItems).toHaveBeenCalled();
4947
expect(expectedData[1].sku).toBe('Conf&-sdfs');
5048
});
5149

0 commit comments

Comments
 (0)