3 my $recnum = $cgi->param('recnum');
5 my $old = qsearchs('agent',{'recnum'=>$recnum}) if $recnum;
7 my $new = new FS::domain_record ( {
9 $_, scalar($cgi->param($_));
10 } fields('domain_record')
15 $error=$new->replace($old);
18 $recnum=$new->getfield('recnum');
22 # $cgi->param('error', $error);
23 # print $cgi->redirect(popurl(2). "agent.cgi?". $cgi->query_string );
24 #no edit screen to send them back to
30 my $svcnum = $new->svcnum;
31 print $cgi->redirect(popurl(3). "view/svc_domain.cgi?$svcnum");