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:35 -0700
committerIvan Kohler <ivan@freeside.biz>2012-03-23 11:21:35 -0700
commit5719851af502c532bf6da05b46ca7210a7a3099d (patch)
tree9c8b5192b6affafb9185e3f62b93762f4a1695db /httemplate/edit/process/REAL_cust_pkg.cgi
parent366aebcc7afc387f52f83ac6da648bf150198891 (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.cgi4
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/edit/process/REAL_cust_pkg.cgi b/httemplate/edit/process/REAL_cust_pkg.cgi
index 9c36c8b77..3e0ef59c1 100755
--- a/httemplate/edit/process/REAL_cust_pkg.cgi
+++ b/httemplate/edit/process/REAL_cust_pkg.cgi
@@ -34,6 +34,10 @@ 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, '_setupadd_areyousure'
+ if $hash{'setup'} && ! $old->setup # if the setup date was added
+ && ! $cgi->param('setupadd_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