diff --git a/include/ListView/ListViewController.php b/include/ListView/ListViewController.php index 5b84166..b65c0d4 100644 --- a/include/ListView/ListViewController.php +++ b/include/ListView/ListViewController.php @@ -339,6 +339,7 @@ class ListViewController { $value = CurrencyField::convertToUserFormat($value); } } + if ($value==0) $value=''; } } elseif($field->getFieldDataType() == 'url') { $matchPattern = "^[\w]+:\/\/^"; diff --git a/Smarty/templates/DetailViewUI.tpl b/Smarty/templates/DetailViewUI.tpl index ceb7bb8..6ccb30a 100644 --- a/Smarty/templates/DetailViewUI.tpl +++ b/Smarty/templates/DetailViewUI.tpl @@ -25,11 +25,13 @@ {if $keyid eq 11 && $USE_ASTERISK eq 'true'}   {$keyval} + {elseif ($keyid eq '71' || $keyid eq '72') && $keyval eq "0"} +    {else}   {$keyval} {/if} diff --git a/Smarty/templates/EditViewUI.tpl b/Smarty/templates/EditViewUI.tpl index 57e1348..2675f4d 100644 --- a/Smarty/templates/EditViewUI.tpl +++ b/Smarty/templates/EditViewUI.tpl @@ -420,7 +420,7 @@ alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.{$fldname}.valu {/if} {else} - + {/if}