Index: trunk/core/kernel/db/db_tag_processor.php
===================================================================
diff -u -r2381 -r2390
--- trunk/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 2381)
+++ trunk/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 2390)
@@ -476,7 +476,8 @@
}
else
{
- if (isset($params['currency'])) {
+ if( $this->HasParam($params, 'currency') )
+ {
$iso = $this->GetISO($params['currency']);
$original = $object->GetDBField($field);
$value = $this->ConvertCurrency($original, $iso);
@@ -499,7 +500,8 @@
}
$value = $object->GetField($field, $format);
- if (isset($params['currency'])) {
+ if( $this->HasParam($params, 'currency') )
+ {
$value = $this->AddCurrencySymbol($value, $iso);
$params['no_special'] = 1;
}
@@ -520,7 +522,8 @@
if ($value != '') $this->Application->Parser->DataExists = true;
- if (isset($params['currency'])) {
+ if( $this->HasParam($params, 'currency') )
+ {
//restoring value in original currency, for other Field tags to work properly
$object->SetDBField($field, $original);
}
Index: trunk/kernel/admin_templates/incs/form_blocks.tpl
===================================================================
diff -u -r2383 -r2390
--- trunk/kernel/admin_templates/incs/form_blocks.tpl (.../form_blocks.tpl) (revision 2383)
+++ trunk/kernel/admin_templates/incs/form_blocks.tpl (.../form_blocks.tpl) (revision 2390)
@@ -48,7 +48,7 @@