$value = CRM_Utils_Array::value($op, (array) $value, $value);
if (is_array($value)) {
foreach ($value as $key => $val) {
- $value[$key] = CRM_Utils_Rule::cleanMoney($value[$key]);
+ // @todo - this clean money should be in the form layer - it's highly likely to be doing more harm than good here
+ // Note the only place I can find that this code is reached by is searching a custom money field in advanced search.
+ // with euro style comma separators this doesn't work - with or without this cleanMoney.
+ // So this should be removed but is not increasing the brokeness IMHO
+ $value[$op][$key] = CRM_Utils_Rule::cleanMoney($value[$key]);
}
}
else {
+ // @todo - this clean money should be in the form layer - it's highly likely to be doing more harm than good here
+ // comments per above apply. cleanMoney
$value = CRM_Utils_Rule::cleanMoney($value);
}