File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/Backend/Block/Widget/Grid/Column/Renderer Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 15
15
*
16
16
* @api
17
17
* @deprecated 100.2.0 in favour of UI component implementation
18
+ * @see don't recommend this approach in favour of UI component implementation
18
19
* @since 100.0.2
19
20
*/
20
21
class Action extends \Magento \Backend \Block \Widget \Grid \Column \Renderer \Text
@@ -135,12 +136,13 @@ protected function _toLinkHtml($action, \Magento\Framework\DataObject $row)
135
136
$ action ['id ' ] = 'id ' . $ this ->random ->getRandomString (10 );
136
137
}
137
138
$ actionAttributes ->setData ($ action );
138
- // phpcs:ignore Magento2.Functions.DiscouragedFunction
139
- $ onclick = html_entity_decode ($ actionAttributes ->getData ('onclick ' ));
139
+ $ onclick = $ actionAttributes ->getData ('onclick ' );
140
140
$ style = $ actionAttributes ->getData ('style ' );
141
141
$ actionAttributes ->unsetData (['onclick ' , 'style ' ]);
142
142
$ html = '<a ' . $ actionAttributes ->serialize () . '> ' . $ actionCaption . '</a> ' ;
143
143
if ($ onclick ) {
144
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
145
+ $ onclick = html_entity_decode ($ onclick );
144
146
$ html .= $ this ->secureHtmlRenderer ->renderEventListenerAsTag ('onclick ' , $ onclick , "# {$ action ['id ' ]}" );
145
147
}
146
148
if ($ style ) {
You can’t perform that action at this time.
0 commit comments