option for shellcommands to ignore errors, #15357
[freeside.git] / httemplate / misc / delete-part_export.cgi
1 % if ( $error ) {
2 %   errorpage($error);
3 % } else {
4 <% $cgi->redirect($p. "browse/part_export.cgi") %>
5 % }
6 <%init>
7
8 die "access denied"
9   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
10
11 #untaint exportnum
12 my($query) = $cgi->keywords;
13 $query =~ /^(\d+)$/ || die "Illegal exportnum";
14 my $exportnum = $1;
15
16 my $part_export = qsearchs('part_export',{'exportnum'=>$exportnum});
17
18 my $error = $part_export->delete;
19
20 </%init>