summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2008-05-07 21:36:35 +0000
committerivan <ivan>2008-05-07 21:36:35 +0000
commitbfd99094043a3260afa2770b9e3f366308041490 (patch)
tree9e0b666e02a05c8fa9f86c98b921b0e943f21d56 /httemplate
parentbb51c09147a727688b6cd49e8838b9219ff25d43 (diff)
fix customer cancellation, sort of a side effect of #2872, fixes #3480, #3481
Diffstat (limited to 'httemplate')
-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')