We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59566f6 commit ff22957Copy full SHA for ff22957
app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Filter/Price.php
@@ -115,14 +115,10 @@ public function getCondition()
115
}
116
$rate = $this->_getRate($displayCurrency, $this->getColumn()->getCurrencyCode());
117
118
- if (isset($value['from'])) {
119
- $from = $value['from'] * $rate;
120
- $value['from'] = sprintf('%F', $from);
121
- }
122
-
123
- if (isset($value['to'])) {
124
- $to = $value['to'] * $rate;
125
- $value['to'] = sprintf('%F', $to);
+ foreach (['from', 'to'] as $key) {
+ if (isset($value[$key]) && is_numeric($value[$key])) {
+ $value[$key] = sprintf('%F', $value[$key] * $rate);
+ }
126
127
128
$this->prepareRates($displayCurrency);
0 commit comments