[freeside-commits] freeside/httemplate/edit/process REAL_cust_pkg.cgi, 1.13, 1.14
Ivan,,,
ivan at wavetail.420.am
Tue Mar 9 22:47:53 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv31816
Modified Files:
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.13
retrieving revision 1.14
diff -u -w -d -r1.13 -r1.14
--- REAL_cust_pkg.cgi 30 Nov 2009 00:04:21 -0000 1.13
+++ REAL_cust_pkg.cgi 10 Mar 2010 06:47:51 -0000 1.14
@@ -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