Skip to content

Commit

Permalink
Merge pull request #860 from SchumacherFM/AdminGridColumnRendererFix
Browse files Browse the repository at this point in the history
Feature: Magento\Backend\Block\Widget\Grid\Column\Renderer (MAGETWO-32153)
  • Loading branch information
maksek committed Dec 25, 2014
2 parents 7e77673 + 97b29e1 commit cc577b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function __construct(
*/
public function render(\Magento\Framework\Object $row)
{
if ($data = (string)$row->getData($this->getColumn()->getIndex())) {
if ($data = (string)$this->_getValue($row)) {
$currency_code = $this->_getCurrencyCode($row);
$data = floatval($data) * $this->_getRate($row);
$sign = (bool)(int)$this->getColumn()->getShowNumberSign() && $data > 0 ? '+' : '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(
*/
public function render(\Magento\Framework\Object $row)
{
if ($data = $row->getData($this->getColumn()->getIndex())) {
if ($data = $this->_getValue($row)) {
$currencyCode = $this->_getCurrencyCode($row);

if (!$currencyCode) {
Expand Down

0 comments on commit cc577b7

Please sign in to comment.