Skip to content

Commit b12af79

Browse files
author
Sergii Kovalenko
committed
MAGETWO-64716: Product name ignores HTML tags and displays plain text
1 parent c7fff61 commit b12af79

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

app/code/Magento/Catalog/etc/eav_attributes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
<attribute code="price_type">
3030
<field code="is_searchable" locked="true" />
3131
</attribute>
32+
<attribute code="name">
33+
<field code="is_html_allowed_on_front" locked="true"/>
34+
</attribute>
3235
<attribute code="category_ids">
3336
<field code="is_searchable" locked="true" />
3437
<field code="used_for_sort_by" locked="true" />

lib/web/mage/adminhtml/form.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ define([
438438
isInArray = values.indexOf(from.value) != -1; //eslint-disable-line
439439
isNegative = valuesFrom[idFrom].negative;
440440

441-
if (!from || isInArray && isNegative || !isInArray && !isNegative) {
441+
if (!from ||isInArray && isNegative || !isInArray && !isNegative) {
442442
shouldShowUp = false;
443443
}
444444
}
@@ -488,8 +488,13 @@ define([
488488

489489
if (isAnInputOrSelect && !isInheritCheckboxChecked) {
490490
if (target) {
491-
target.disabled = false;
491+
if (target.getAttribute('readonly')) {
492+
target.disabled = true;
493+
} else {
494+
target.disabled = false;
495+
}
492496
}
497+
493498
jQuery('#' + idTo).removeClass('ignore-validate');
494499
}
495500
}

0 commit comments

Comments
 (0)