From bfd99094043a3260afa2770b9e3f366308041490 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 7 May 2008 21:36:35 +0000 Subject: [PATCH] fix customer cancellation, sort of a side effect of #2872, fixes #3480, #3481 --- httemplate/misc/cancel_cust.html | 7 ------- httemplate/view/cust_main.cgi | 2 +- 2 files changed, 1 insertion(+), 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') -- 2.11.0