blob: 52404e0c48df8ed85160ab01a512c5803b0e450f (
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 {
<% $cgi->redirect($p. "browse/part_export.cgi") %>
% }
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
#untaint exportnum
my($query) = $cgi->keywords;
$query =~ /^(\d+)$/ || die "Illegal exportnum";
my $exportnum = $1;
my $part_export = qsearchs('part_export',{'exportnum'=>$exportnum});
my $error = $part_export->delete;
</%init>
|