File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
templates/catalog/product/attribute
Eav/Block/Adminhtml/Attribute/Edit/Main Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 29
29
<?php $ _labels = $ block ->getLabelValues () ?>
30
30
<?php foreach ($ block ->getStores () as $ _store ) :?>
31
31
<td class="col-store-view">
32
- <input class="input-text<?php if ($ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ) :?> required-option<?php endif ; ?> "
32
+ <input class="input-text validate-no-html-tags <?php if ($ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ) :?> required-option<?php endif ; ?> "
33
33
type="text"
34
34
name="frontend_label[<?= $ block ->escapeHtmlAttr ($ _store ->getId ()) ?> ]"
35
35
value="<?= $ block ->escapeHtmlAttr ($ _labels [$ _store ->getId ()]) ?> "
Original file line number Diff line number Diff line change 63
63
<required >true</required >
64
64
<validation >
65
65
<rule name =" required-entry" xsi : type =" boolean" >true</rule >
66
+ <rule name =" validate-no-html-tags" xsi : type =" boolean" >true</rule >
66
67
</validation >
67
68
<dataType >string</dataType >
68
69
<label translate =" true" >Attribute Label</label >
Original file line number Diff line number Diff line change @@ -130,7 +130,8 @@ protected function _prepareForm()
130
130
'label ' => __ ('Default Label ' ),
131
131
'title ' => __ ('Default label ' ),
132
132
'required ' => true ,
133
- 'value ' => is_array ($ labels ) ? $ labels [0 ] : $ labels
133
+ 'value ' => is_array ($ labels ) ? $ labels [0 ] : $ labels ,
134
+ 'class ' => 'validate-no-html-tags ' ,
134
135
]
135
136
);
136
137
You can’t perform that action at this time.
0 commit comments