summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-17 22:33:05 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-17 22:33:05 +0000
commit5e3b3b923354fba44141d6a1110aee421286d42d (patch)
tree7f8e70df7205f710387803f423b915d4864e12ea /LedgerSMB
parent342ad9d9de7d9ca137ca90cbc7971cca15bb6e89 (diff)
Resolving bug 169959
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1083 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Form.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 38322350..7f0c6ec1 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -214,7 +214,7 @@ sub error {
delete $self->{pre};
if ( !$self->{header} ) {
- $self->eader;
+ $self->header;
}
print
@@ -2726,6 +2726,10 @@ sub save_recurring {
$s{print}, $s{email}, $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 }