Skip to content

Commit ef08cbb

Browse files
committed
Fixes failed tests for Data Object
- fixed currency renderer for grid columns
1 parent b7db2b2 commit ef08cbb

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ protected function _getCurrencyCode($row)
102102
if ($code = $this->getColumn()->getCurrencyCode()) {
103103
return $code;
104104
}
105-
if ($code = $row->getData($this->getColumn()->getCurrency())) {
105+
$currency = $this->getColumn()->getCurrency();
106+
107+
if ($currency !== null && $code = $row->getData($currency)) {
106108
return $code;
107109
}
108110

0 commit comments

Comments
 (0)