Skip to content

Commit 2ccb374

Browse files
committed
#12294: Bug: Adding Custom Attribute - The value of Admin scope can't be empty- Made hidden fields disabled.
1 parent b1cc3ea commit 2ccb374

File tree

1 file changed

+3
-0
lines changed
  • app/code/Magento/Catalog/view/adminhtml/web/js

1 file changed

+3
-0
lines changed

app/code/Magento/Catalog/view/adminhtml/web/js/options.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ define([
8181
element.addClassName('no-display');
8282
element.addClassName('template');
8383
element.hide();
84+
jQuery(element).find('input').each(function(index, el) {
85+
el.disabled = 'disabled';
86+
});
8487
this.totalItems--;
8588
this.updateItemsCountField();
8689
}

0 commit comments

Comments
 (0)