3 my $exportnum = $cgi->param('exportnum');
5 my $old = qsearchs('part_export', { 'exportnum'=>$exportnum } ) if $exportnum;
8 #warn join('-', split(',',$cgi->param('options')));
9 my %options = map { $_=>$cgi->param($_) } split(',',$cgi->param('options'));
11 my $new = new FS::part_export ( {
13 $_, scalar($cgi->param($_));
14 } fields('part_export')
22 $error = $new->replace($old,\%options);
24 $error = $new->insert(\%options);
25 # $exportnum = $new->exportnum;
29 $cgi->param('error', $error );
30 print $cgi->redirect(popurl(2). "part_export.cgi?". $cgi->query_string );
32 print $cgi->redirect(popurl(3). "browse/part_export.cgi");