Skip to content

Commit

Permalink
fixed issue magento#18082
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham sharma authored and shubham sharma committed Oct 8, 2018
1 parent 83a9b9c commit f59bc17
Showing 1 changed file with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,17 +406,20 @@ define([
* - configurable-matrix-serialized;
* - associated_product_ids_serialized.
*/
serializeData: function () {
this.source.data['configurable-matrix-serialized'] =
JSON.stringify(this.source.data['configurable-matrix']);

delete this.source.data['configurable-matrix'];

this.source.data['associated_product_ids_serialized'] =
JSON.stringify(this.source.data['associated_product_ids']);

delete this.source.data['associated_product_ids'];
},
serializeData: function () {
this.source.data['configurable-matrix-serialized'] =
JSON.stringify(this.source.data['configurable-matrix']);
if ($('.admin__field-error').length===0) {
delete this.source.data['configurable-matrix'];
}


this.source.data['associated_product_ids_serialized'] =
JSON.stringify(this.source.data['associated_product_ids']);
if ($('.admin__field-error').length===0) {
delete this.source.data['associated_product_ids'];
}
},

/**
* Check for newly added attributes
Expand Down

0 comments on commit f59bc17

Please sign in to comment.