projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bb51c09
)
fix customer cancellation, sort of a side effect of #2872, fixes #3480, #3481
author
ivan
<ivan>
Wed, 7 May 2008 21:36:35 +0000
(21:36 +0000)
committer
ivan
<ivan>
Wed, 7 May 2008 21:36:35 +0000
(21:36 +0000)
httemplate/misc/cancel_cust.html
patch
|
blob
|
history
httemplate/view/cust_main.cgi
patch
|
blob
|
history
diff --git
a/httemplate/misc/cancel_cust.html
b/httemplate/misc/cancel_cust.html
index
5c2e036
..
12c37eb
100644
(file)
--- a/
httemplate/misc/cancel_cust.html
+++ b/
httemplate/misc/cancel_cust.html
@@
-34,16
+34,9
@@
<%init>
<%init>
-my $reasonnum = '';
-my($submit, $class);
-
$cgi->param('custnum') =~ /^(\d+)$/ or die 'illegal custnum';
my $custnum = $1;
$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');
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
94cf132
..
63df35a
100755
(executable)
--- 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')
% if ( $conf->exists('deletecustomers')
% && $curuser->access_right('Delete customer')