Skip to content

Commit b0aa90a

Browse files
committed
Merge branch 'issue-36309' of github.com:rogerdz/magento2 into 2.4-develop-prs
2 parents fdf18ee + 3acdda0 commit b0aa90a

File tree

1 file changed

+7
-2
lines changed
  • app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/variations

1 file changed

+7
-2
lines changed

app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/variations/variations.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,14 @@ define([
130130
* @return {String|Number|Array}
131131
*/
132132
getProductValue: function (name) {
133-
name = name.split('/').join('][');
133+
var value;
134134

135-
return $('[name="product[' + name + ']"]:enabled:not(.ignore-validate)', this.productForm).val();
135+
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;
136141
},
137142

138143
/**

0 commit comments

Comments
 (0)