Skip to content

Commit 3ea4ad6

Browse files
author
lakshmana
committed
ACP2E-1751 : Restoring a DB backup fails in the admin
1 parent a047c76 commit 3ea4ad6

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,11 @@ protected function _toLinkHtml($action, \Magento\Framework\DataObject $row)
132132
}
133133

134134
if (empty($action['id'])) {
135-
$action['id'] = 'id' .$this->random->getRandomString(10);
135+
$action['id'] = 'id' . $this->random->getRandomString(10);
136136
}
137137
$actionAttributes->setData($action);
138-
$onclick = $actionAttributes->getData('onclick');
138+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
139+
$onclick = html_entity_decode($actionAttributes->getData('onclick'));
139140
$style = $actionAttributes->getData('style');
140141
$actionAttributes->unsetData(['onclick', 'style']);
141142
$html = '<a ' . $actionAttributes->serialize() . '>' . $actionCaption . '</a>';

0 commit comments

Comments
 (0)