Skip to content

Commit 2b261a5

Browse files
author
Stanislav Idolov
committed
MAGETWO-84311: Fix for issue 12127: Single quotation marks are now decoded properly in admin attribute option input fields magento#12133
- Merge Pull Request magento#12133 from erfanimani/magento2:2.2-develop - Merged commits: 1. cfab448
2 parents 9fc1138 + cfab448 commit 2b261a5

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)