We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7900123 commit 801da3fCopy full SHA for 801da3f
app/code/Magento/Backend/Block/Widget/Grid/Column/Renderer/Currency.php
@@ -118,11 +118,14 @@ protected function _getCurrencyCode($row)
118
protected function _getRate($row)
119
{
120
if ($rate = $this->getColumn()->getRate()) {
121
- return (float)$rate;
+ return (float) $rate;
122
}
123
- if ($rate = $row->getData($this->getColumn()->getRateField())) {
124
+ $rateField = $this->getColumn()->getRateField();
+
125
+ if ($rateField !== null && $rate = $row->getData($rateField)) {
126
127
128
129
return $this->_defaultBaseCurrency->getRate($this->_getCurrencyCode($row));
130
131
0 commit comments