blob: 30856a73a35039b4964d0c7c32d5d44cab3b2459 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
% if ( $error ) {
% errorpage($error);
% } else {
<% header('Rate deleted') %>
<SCRIPT TYPE="text/javascript">
window.top.location.reload();
</SCRIPT>
</BODY></HTML>
% }
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
my ($query) = $cgi->keywords;
$query =~ /^(\d+)$/ or die "Illegal ratedetailnum";
my $rate_detail = FS::rate_detail->by_key($1);
my $error = $rate_detail->delete;
</%init>
|