summaryrefslogtreecommitdiff
path: root/FS/FS/ClientAPI/MyAccount.pm
diff options
context:
space:
mode:
authorjeff <jeff>2010-10-05 01:53:55 +0000
committerjeff <jeff>2010-10-05 01:53:55 +0000
commite94bccb7296ad6c884005b6beb24a1c2716314a2 (patch)
tree7039e636a4698c96bd44b5dc6230c05a0fd6bdeb /FS/FS/ClientAPI/MyAccount.pm
parent0a8be4e691bff63c45cc79cc6b7ec667b02f062c (diff)
permit null discount_term RT10135
Diffstat (limited to 'FS/FS/ClientAPI/MyAccount.pm')
-rw-r--r--FS/FS/ClientAPI/MyAccount.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index dbcef7d..1e1d1d3 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -596,7 +596,7 @@ sub process_payment {
my $amount = $1;
return { error => 'Amount must be greater than 0' } unless $amount > 0;
- $p->{'discount_term'} =~ /^\s*(\d+)\s*$/
+ $p->{'discount_term'} =~ /^\s*(\d*)\s*$/
or return { 'error' => gettext('illegal_discount_term'). ': '. $p->{'discount_term'} };
my $discount_term = $1;