[freeside-commits] freeside/httemplate/edit/process REAL_cust_pkg.cgi, 1.12.2.1, 1.12.2.2

Ivan,,, ivan at wavetail.420.am
Tue Mar 9 22:47:54 PST 2010


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv31828

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	REAL_cust_pkg.cgi 
Log Message:
fix warning about adding a start date to actually check its *added*, RT#7352

Index: REAL_cust_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/REAL_cust_pkg.cgi,v
retrieving revision 1.12.2.1
retrieving revision 1.12.2.2
diff -u -w -d -r1.12.2.1 -r1.12.2.2
--- REAL_cust_pkg.cgi	30 Nov 2009 00:04:23 -0000	1.12.2.1
+++ REAL_cust_pkg.cgi	10 Mar 2010 06:47:52 -0000	1.12.2.2
@@ -39,7 +39,7 @@
   && ! $cgi->param('setup_areyousure');      # and it wasn't confirmed 
 
 push @errors, '_start'
-  if $hash{'start_date'} && $old->start_date # if a start date was added
+  if $hash{'start_date'} && !$old->start_date # if a start date was added
   && $hash{'setup'};                         # but there's a setup date
 
 my $new;
@@ -47,6 +47,7 @@
 if ( @errors ) {
   $error = join(',', @errors);
 } else {
+  warn join(',',%hash);
   $new = new FS::cust_pkg \%hash;
   $error = $new->replace($old);
 }



More information about the freeside-commits mailing list