3 my $exportnum = $cgi->param('exportnum');
5 my $old = qsearchs('part_export', { 'exportnum'=>$exportnum } ) if $exportnum;
8 #warn join('-', split(',',$cgi->param('options')));
10 my $value = $cgi->param($_);
11 $value =~ s/\r\n/\n/g; #browsers? (textarea)
13 } split(',', $cgi->param('options'));
15 my $new = new FS::part_export ( {
17 $_, scalar($cgi->param($_));
18 } fields('part_export')
26 $error = $new->replace($old,\%options);
28 $error = $new->insert(\%options);
29 # $exportnum = $new->exportnum;
33 $cgi->param('error', $error );
34 print $cgi->redirect(popurl(2). "part_export.cgi?". $cgi->query_string );
36 print $cgi->redirect(popurl(3). "browse/part_export.cgi");