getLabelValues() ?>
- getStores() as $_store) :?>
+ getStores() as $_store): ?>
- getId() == \Magento\Store\Model\Store::DEFAULT_STORE_ID; ?>
+
+ getReadOnly()) :?>
+ getReadOnly()): ?>
disabled="disabled"
/>
|
diff --git a/app/code/Magento/Catalog/view/adminhtml/ui_component/product_attribute_add_form.xml b/app/code/Magento/Catalog/view/adminhtml/ui_component/product_attribute_add_form.xml
index 3a6621137ed5a..7f87eb0cdd391 100644
--- a/app/code/Magento/Catalog/view/adminhtml/ui_component/product_attribute_add_form.xml
+++ b/app/code/Magento/Catalog/view/adminhtml/ui_component/product_attribute_add_form.xml
@@ -63,6 +63,7 @@
true
true
+ true
string
diff --git a/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Main/AbstractMain.php b/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Main/AbstractMain.php
index be9d2700664c7..fe660f01c8244 100644
--- a/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Main/AbstractMain.php
+++ b/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Main/AbstractMain.php
@@ -130,7 +130,8 @@ protected function _prepareForm()
'label' => __('Default Label'),
'title' => __('Default label'),
'required' => true,
- 'value' => is_array($labels) ? $labels[0] : $labels
+ 'value' => is_array($labels) ? $labels[0] : $labels,
+ 'class' => 'validate-no-html-tags',
]
);
@@ -282,7 +283,8 @@ protected function _initFormValues()
* Adding js block to the end of this block
*
* @param string $html
- * @return string
+ *
+ * @return string
*/
protected function _afterToHtml($html)
{