summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--httemplate/misc/cancel_cust.html7
-rwxr-xr-xhttemplate/view/cust_main.cgi2
2 files changed, 1 insertions, 8 deletions
diff --git a/httemplate/misc/cancel_cust.html b/httemplate/misc/cancel_cust.html
index 5c2e03677..12c37ebe2 100644
--- a/httemplate/misc/cancel_cust.html
+++ b/httemplate/misc/cancel_cust.html
@@ -34,16 +34,9 @@
<%init>
-my $reasonnum = '';
-my($submit, $class);
-
$cgi->param('custnum') =~ /^(\d+)$/ or die 'illegal custnum';
my $custnum = $1;
-if ( $cgi->param('error') ) {
- $reasonnum = $cgi->param('reasonnum');
-}
-
my $curuser = $FS::CurrentUser::CurrentUser;
die "access denied" unless $curuser->access_right('Cancel customer');
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index 94cf13258..63df35ad1 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -27,7 +27,7 @@ function areyousure(href, message) {
)
%> |
-% }
+% }
% if ( $conf->exists('deletecustomers')
% && $curuser->access_right('Delete customer')