2 % $cgi->param('error', $error );
3 <% $cgi->redirect(popurl(2). "part_export.cgi?". $cgi->query_string ) %>
5 <% $cgi->redirect(popurl(3). "browse/part_export.cgi") %>
10 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
12 my $exportnum = $cgi->param('exportnum');
14 my $old = qsearchs('part_export', { 'exportnum'=>$exportnum } ) if $exportnum;
17 #warn join('-', split(',',$cgi->param('options')));
19 my $value = $cgi->param($_);
20 $value =~ s/\r\n/\n/g; #browsers? (textarea)
22 } split(',', $cgi->param('options'));
24 my $new = new FS::part_export ( {
26 $_, scalar($cgi->param($_));
27 } fields('part_export')
35 $error = $new->replace($old,\%options);
37 $error = $new->insert(\%options);
38 # $exportnum = $new->exportnum;