Skip to content
Snippets Groups Projects
Commit 21bcafc0 authored by Victor Feyens's avatar Victor Feyens
Browse files

[FIX] product_matrix: ensure the data is taken from a targeted widget.

X-original-commit: 44462e11
parent 53bc9dcd
No related branches found
No related tags found
No related merge requests found
......@@ -72,8 +72,12 @@ SectionAndNoteFieldOne2Many.include({
},
viewType: 'form',
onSuccess: function (result) {
// why the hell do we receive a table of 8 classes here? :o
self._openMatrixConfigurator(result[0].recordData.grid, productTemplateId, editedCellAttributes);
// result = list of widgets
// find one of the SO widget
// (not so lines because the grid values are computed on the SO)
// and get the grid information from its recordData.
var gridInfo = result.find(r => r.recordData.grid).recordData.grid;
self._openMatrixConfigurator(gridInfo, productTemplateId, editedCellAttributes);
}
});
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment