fix customer cancellation, sort of a side effect of #2872, fixes #3480, #3481
authorivan <ivan>
Wed, 7 May 2008 21:36:35 +0000 (21:36 +0000)
committerivan <ivan>
Wed, 7 May 2008 21:36:35 +0000 (21:36 +0000)
httemplate/misc/cancel_cust.html
httemplate/view/cust_main.cgi

index 5c2e036..12c37eb 100644 (file)
 
 <%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');
index 94cf132..63df35a 100755 (executable)
@@ -27,7 +27,7 @@ function areyousure(href, message) {
             )
   %> | 
 
-% } 
+% }
 
 % if ( $conf->exists('deletecustomers')
 %        && $curuser->access_right('Delete customer')