summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-17 22:34:29 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-17 22:34:29 +0000
commit3a3a77c409d7003d5e4b0115ab1c6e60fd879616 (patch)
tree5814364b0bbdd5f712efa9004275f8a6fddd8fec
parent15b7a9e3437bc165cd0bf431db2a5bd8ffa879ae (diff)
Resolving bug 169959
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1084 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--LedgerSMB/Form.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index e799753f..9e6a403b 100644
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -2626,6 +2626,9 @@ sub save_recurring {
$s{message})
= split /,/, $self->{recurring};
+ if ($s{howmany} == 0){
+ $self->error("Cannot set to recur 0 times");
+ }
for (qw(reference message)) { $s{$_} = $self->unescape($s{$_}) }
for (qw(repeat howmany payment)) { $s{$_} *= 1 }