Skip to content

Commit

Permalink
MAGETWO-84311: Fix for issue 12127: Single quotation marks are now de…
Browse files Browse the repository at this point in the history
…coded properly in admin attribute option input fields #12133
  • Loading branch information
Oleksii Korshenko authored Nov 28, 2017
2 parents 228d080 + 0082f5c commit f748f11
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ $stores = $block->getStoresSortedBySortOrder();
$values = [];
foreach($block->getOptionValues() as $value) {
$value = $value->getData();
$values[] = is_array($value) ? array_map("htmlspecialchars_decode", $value) : $value;
$values[] = is_array($value) ? array_map(function($str) {
return htmlspecialchars_decode($str, ENT_QUOTES);
}, $value) : $value;
}
?>
<script type="text/x-magento-init">
Expand Down

0 comments on commit f748f11

Please sign in to comment.