From: ivan Date: Wed, 7 May 2008 21:36:35 +0000 (+0000) Subject: fix customer cancellation, sort of a side effect of #2872, fixes #3480, #3481 X-Git-Tag: root_of_webpay_support~664 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=bfd99094043a3260afa2770b9e3f366308041490;hp=bb51c09147a727688b6cd49e8838b9219ff25d43 fix customer cancellation, sort of a side effect of #2872, fixes #3480, #3481 --- 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')