Skip to content

Commit

Permalink
Fix Widget saving non-XML entities to layout_update
Browse files Browse the repository at this point in the history
  • Loading branch information
tdgroot authored Jul 5, 2017
1 parent d6bb4de commit 22050bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/Widget/Model/Widget/Instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ public function generateLayoutUpdateXml($container, $templatePath = '')
$value = implode(',', $value);
}
if ($name && strlen((string)$value)) {
$value = html_entity_decode($value);
$xml .= '<action method="setData">' .
'<argument name="name" xsi:type="string">' .
$name .
Expand Down

0 comments on commit 22050bd

Please sign in to comment.