Index: branches/5.1.x/core/kernel/db/db_tag_processor.php =================================================================== diff -u -N -r13884 -r13885 --- branches/5.1.x/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 13884) +++ branches/5.1.x/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 13885) @@ -1,6 +1,6 @@ GetFormattedTotal($field, $total_function); + if (array_key_exists('currency', $params) && $params['currency']) { + $iso = $this->GetISO($params['currency']); + $original = $list->getTotal($field, $total_function); + $value = $this->ConvertCurrency($original, $iso); + $list->setTotal($field, $total_function, $value); + } + + $value = $list->GetFormattedTotal($field, $total_function); + + if (array_key_exists('currency', $params) && $params['currency']) { + $value = $this->AddCurrencySymbol($value, $iso); + } + + return $value; } /** Index: branches/5.1.x/core/kernel/db/dblist.php =================================================================== diff -u -N -r13884 -r13885 --- branches/5.1.x/core/kernel/db/dblist.php (.../dblist.php) (revision 13884) +++ branches/5.1.x/core/kernel/db/dblist.php (.../dblist.php) (revision 13885) @@ -1,6 +1,6 @@ Totals[$field . '_' . $total_function]; } + function setTotal($field, $total_function, $value) + { + $this->Totals[$field . '_' . $total_function] = $value; + } + function getTotalFunction($field) { if ($this->gridName) {