Skip to content

Commit fe01eca

Browse files
author
lakshmana
committed
ACP2E-1751 : Restoring a DB backup fails in the admin
- Refactoring solution as per build failures and added see tag
1 parent 3ea4ad6 commit fe01eca

File tree

1 file changed

+4
-2
lines changed
  • app/code/Magento/Backend/Block/Widget/Grid/Column/Renderer

1 file changed

+4
-2
lines changed

app/code/Magento/Backend/Block/Widget/Grid/Column/Renderer/Action.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
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
*/
2021
class 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) {

0 commit comments

Comments
 (0)