Skip to content

Commit f748f11

Browse files
author
Oleksii Korshenko
authored
MAGETWO-84311: Fix for issue 12127: Single quotation marks are now decoded properly in admin attribute option input fields magento#12133
2 parents 228d080 + 0082f5c commit f748f11

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute

1 file changed

+3
-1
lines changed

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/options.phtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ $stores = $block->getStoresSortedBySortOrder();
8888
$values = [];
8989
foreach($block->getOptionValues() as $value) {
9090
$value = $value->getData();
91-
$values[] = is_array($value) ? array_map("htmlspecialchars_decode", $value) : $value;
91+
$values[] = is_array($value) ? array_map(function($str) {
92+
return htmlspecialchars_decode($str, ENT_QUOTES);
93+
}, $value) : $value;
9294
}
9395
?>
9496
<script type="text/x-magento-init">

0 commit comments

Comments
 (0)