File tree 1 file changed +10
-8
lines changed
app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/variations 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -407,15 +407,17 @@ define([
407
407
* - associated_product_ids_serialized.
408
408
*/
409
409
serializeData : function ( ) {
410
- this . source . data [ 'configurable-matrix-serialized' ] =
411
- JSON . stringify ( this . source . data [ 'configurable-matrix' ] ) ;
412
-
413
- delete this . source . data [ 'configurable-matrix' ] ;
414
-
415
- this . source . data [ 'associated_product_ids_serialized' ] =
416
- JSON . stringify ( this . source . data [ 'associated_product_ids' ] ) ;
410
+ if ( this . source . data [ 'configurable-matrix' ] ) {
411
+ this . source . data [ 'configurable-matrix-serialized' ] =
412
+ JSON . stringify ( this . source . data [ 'configurable-matrix' ] ) ;
413
+ delete this . source . data [ 'configurable-matrix' ] ;
414
+ }
417
415
418
- delete this . source . data [ 'associated_product_ids' ] ;
416
+ if ( this . source . data [ 'associated_product_ids' ] ) {
417
+ this . source . data [ 'associated_product_ids_serialized' ] =
418
+ JSON . stringify ( this . source . data [ 'associated_product_ids' ] ) ;
419
+ delete this . source . data [ 'associated_product_ids' ] ;
420
+ }
419
421
} ,
420
422
421
423
/**
You can’t perform that action at this time.
0 commit comments