We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fdf18ee + 3acdda0 commit b0aa90aCopy full SHA for b0aa90a
app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/variations/variations.js
@@ -130,9 +130,14 @@ define([
130
* @return {String|Number|Array}
131
*/
132
getProductValue: function (name) {
133
- name = name.split('/').join('][');
+ var value;
134
135
- return $('[name="product[' + name + ']"]:enabled:not(.ignore-validate)', this.productForm).val();
+ name = name.split('/').join('][');
136
+ value = $('[name="product[' + name + ']"]:enabled:not(.ignore-validate)', this.productForm).val();
137
+ if (value === undefined) {
138
+ value = this.source.get('data.product.' + name);
139
+ }
140
+ return value;
141
},
142
143
/**
0 commit comments