Skip to content

Commit cc577b7

Browse files
author
maksek
committed
Merge pull request #860 from SchumacherFM/AdminGridColumnRendererFix
Feature: Magento\Backend\Block\Widget\Grid\Column\Renderer (MAGETWO-32153)
2 parents 7e77673 + 97b29e1 commit cc577b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function __construct(
8080
*/
8181
public function render(\Magento\Framework\Object $row)
8282
{
83-
if ($data = (string)$row->getData($this->getColumn()->getIndex())) {
83+
if ($data = (string)$this->_getValue($row)) {
8484
$currency_code = $this->_getCurrencyCode($row);
8585
$data = floatval($data) * $this->_getRate($row);
8686
$sign = (bool)(int)$this->getColumn()->getShowNumberSign() && $data > 0 ? '+' : '';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(
4848
*/
4949
public function render(\Magento\Framework\Object $row)
5050
{
51-
if ($data = $row->getData($this->getColumn()->getIndex())) {
51+
if ($data = $this->_getValue($row)) {
5252
$currencyCode = $this->_getCurrencyCode($row);
5353

5454
if (!$currencyCode) {

0 commit comments

Comments
 (0)