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 1515 *
1616 * @api
1717 * @deprecated 100.2.0 in favour of UI component implementation
18+ * @see don't recommend this approach in favour of UI component implementation
1819 * @since 100.0.2
1920 */
2021class Action extends \Magento \Backend \Block \Widget \Grid \Column \Renderer \Text
@@ -135,12 +136,13 @@ protected function _toLinkHtml($action, \Magento\Framework\DataObject $row)
135136 $ action ['id ' ] = 'id ' . $ this ->random ->getRandomString (10 );
136137 }
137138 $ actionAttributes ->setData ($ action );
138- // phpcs:ignore Magento2.Functions.DiscouragedFunction
139- $ onclick = html_entity_decode ($ actionAttributes ->getData ('onclick ' ));
139+ $ onclick = $ actionAttributes ->getData ('onclick ' );
140140 $ style = $ actionAttributes ->getData ('style ' );
141141 $ actionAttributes ->unsetData (['onclick ' , 'style ' ]);
142142 $ html = '<a ' . $ actionAttributes ->serialize () . '> ' . $ actionCaption . '</a> ' ;
143143 if ($ onclick ) {
144+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
145+ $ onclick = html_entity_decode ($ onclick );
144146 $ html .= $ this ->secureHtmlRenderer ->renderEventListenerAsTag ('onclick ' , $ onclick , "# {$ action ['id ' ]}" );
145147 }
146148 if ($ style ) {
You can’t perform that action at this time.
0 commit comments