Skip to content

Commit

Permalink
Fix for issue 12127: Single quotation marks are now decoded properly …
Browse files Browse the repository at this point in the history
…in admin attribute option input fields.
  • Loading branch information
erfanimani committed Nov 9, 2017
1 parent fd8dcad commit cfab448
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 cfab448

Please sign in to comment.