summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2010-03-10 06:47:51 +0000
committerivan <ivan>2010-03-10 06:47:51 +0000
commit3d542eab7c98eb31890d9d509c0f97c775255f5f (patch)
treeba00f613c22b0bc8dcf8d3777bea11d50accd2d0 /httemplate
parentc8ccfda25a9653d51cd932fa863e78e33b2357f6 (diff)
fix warning about adding a start date to actually check its *added*, RT#7352
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/edit/process/REAL_cust_pkg.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/edit/process/REAL_cust_pkg.cgi b/httemplate/edit/process/REAL_cust_pkg.cgi
index 22aab44e8..b5796ebf5 100755
--- a/httemplate/edit/process/REAL_cust_pkg.cgi
+++ b/httemplate/edit/process/REAL_cust_pkg.cgi
@@ -39,14 +39,15 @@ push @errors, '_setup_areyousure'
&& ! $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
- && $hash{'setup'}; # but there's a setup date
+ if $hash{'start_date'} && !$old->start_date # if a start date was added
+ && $hash{'setup'}; # but there's a setup date
my $new;
my $error;
if ( @errors ) {
$error = join(',', @errors);
} else {
+ warn join(',',%hash);
$new = new FS::cust_pkg \%hash;
$error = $new->replace($old);
}