File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
app/code/Magento/Widget/Block/Adminhtml/Widget
lib/internal/Magento/Framework/Data/Form/Element Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,9 @@ protected function _addField($parameter)
166
166
167
167
if (is_array ($ data ['value ' ])) {
168
168
foreach ($ data ['value ' ] as &$ value ) {
169
- $ value = html_entity_decode ($ value );
169
+ if (!is_array ($ value )) {
170
+ $ value = html_entity_decode ($ value );
171
+ }
170
172
}
171
173
} else {
172
174
$ data ['value ' ] = html_entity_decode ($ data ['value ' ]);
Original file line number Diff line number Diff line change @@ -37,8 +37,14 @@ public function __construct(
37
37
public function getElementHtml ()
38
38
{
39
39
$ html = $ this ->getBold () ? '<div class="control-value special"> ' : '<div class="control-value"> ' ;
40
- $ html .= $ this ->getEscapedValue () . '</div> ' ;
40
+ if (is_array ($ this ->getValue ())) {
41
+ $ html .= '</div> ' ;
42
+ } else {
43
+ $ html .= $ this ->getEscapedValue () . '</div> ' ;
44
+ }
45
+
41
46
$ html .= $ this ->getAfterElementHtml ();
47
+
42
48
return $ html ;
43
49
}
44
50
}
You can’t perform that action at this time.
0 commit comments