[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.112, 1.113

Jeff Finucane,420,, jeff at wavetail.420.am
Mon Oct 4 18:53:57 PDT 2010


Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv11006

Modified Files:
	MyAccount.pm 
Log Message:
permit null discount_term RT10135

Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -w -d -r1.112 -r1.113
--- MyAccount.pm	22 Sep 2010 19:16:19 -0000	1.112
+++ MyAccount.pm	5 Oct 2010 01:53:55 -0000	1.113
@@ -596,7 +596,7 @@
   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;
 



More information about the freeside-commits mailing list