diff options
Diffstat (limited to 'LedgerSMB/Form.pm')
-rwxr-xr-x | LedgerSMB/Form.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index 94a96dc0..a917943e 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -490,6 +490,10 @@ sub parse_amount { my ($self, $myconfig, $amount) = @_; + if ($amount eq '') { + return undef; + } + if (UNIVERSAL::isa($amount, 'Math::BigFloat')){ # Amount may not be an object return $amount; } |