summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/REAL_cust_pkg.cgi
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-03-23 11:21:10 -0700
committerIvan Kohler <ivan@freeside.biz>2012-03-23 11:21:10 -0700
commitbf4e71db6af0d0a86edcec8b447d8b5444d45f6c (patch)
treef24d6840d2a43d82a8a736375a4c8456455d437a /httemplate/edit/process/REAL_cust_pkg.cgi
parent69bf020f03918910e0e34260d6e5a9d984f0414d (diff)
warn if adding a setup date too
Diffstat (limited to 'httemplate/edit/process/REAL_cust_pkg.cgi')
-rwxr-xr-xhttemplate/edit/process/REAL_cust_pkg.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/edit/process/REAL_cust_pkg.cgi b/httemplate/edit/process/REAL_cust_pkg.cgi
index 9c36c8b77..6f5b38fa2 100755
--- a/httemplate/edit/process/REAL_cust_pkg.cgi
+++ b/httemplate/edit/process/REAL_cust_pkg.cgi
@@ -34,7 +34,11 @@ push @errors, '_setup_areyousure'
if ! $hash{'setup'} && $old->setup # if the setup date was removed
&& ! $cgi->param('setup_areyousure'); # and it wasn't confirmed
-push @errors, '_start'
+push @errors, '_setupadd_areyousure'
+ if $hash{'setup'} && ! $old->setup # if the setup date was added
+ && ! $cgi->param('setupadd_areyousure'); # and it wasn't confirmed
+
+rors, '_start'
if $hash{'start_date'} && !$old->start_date # if a start date was added
&& $hash{'setup'}; # but there's a setup date