Skip to content

Commit

Permalink
Use default configurable attribute label for new products (#3168)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmenozzi committed Apr 13, 2023
1 parent ff22957 commit 81702bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/mage/adminhtml/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ Product.Configurable.prototype = {
}
var label_readonly = '';
var use_default_checked = '';
if (attribute.use_default == '1') {
if (attribute.use_default == '1' || attribute.id == null) {
use_default_checked = ' checked="checked"';
label_readonly = ' readonly="readonly"';
}
Expand Down

0 comments on commit 81702bc

Please sign in to comment.