From 2e48e253c83d3f3d585afb1f1fd87af9f8084c27 Mon Sep 17 00:00:00 2001 From: Sergii Shkiria Date: Fri, 15 Dec 2017 16:33:05 +0200 Subject: [PATCH] magento/magento2#12294: Bug: Adding Custom Attribute - The value of Admin scope can't be empty- Made hidden fields disabled. --- app/code/Magento/Catalog/view/adminhtml/web/js/options.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/code/Magento/Catalog/view/adminhtml/web/js/options.js b/app/code/Magento/Catalog/view/adminhtml/web/js/options.js index 5239eb207efca..89ca97ae53c84 100644 --- a/app/code/Magento/Catalog/view/adminhtml/web/js/options.js +++ b/app/code/Magento/Catalog/view/adminhtml/web/js/options.js @@ -81,6 +81,9 @@ define([ element.addClassName('no-display'); element.addClassName('template'); element.hide(); + jQuery(element).find('input').each(function(index, el) { + el.disabled = 'disabled'; + }); this.totalItems--; this.updateItemsCountField(); }