From f0229b16c649724c74174a8fb42d14ab05c615a9 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Fri, 2 Feb 2007 05:22:32 +0000 Subject: Cleared bug 1625954 git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@788 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LedgerSMB') diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index c009d114..01dbe085 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -480,7 +480,7 @@ sub parse_amount { my ($self, $myconfig, $amount) = @_; if (($amount eq '') or ($amount eq undef)) { - return undef; + $amount = 0; } if (UNIVERSAL::isa($amount, 'Math::BigFloat')){ # Amount may not be an object -- cgit v1.2.3