3 $cgi->param('svcnum') =~ /^(\d*)$/ or die "Illegal svcnum!";
8 $old = qsearchs('svc_broadband', { 'svcnum' => $svcnum } )
9 or die "fatal: can't find broadband service (svcnum $svcnum)!";
14 my $new = new FS::svc_broadband ( {
16 ($_, scalar($cgi->param($_)));
17 } ( fields('svc_broadband'), qw( pkgnum svcpart ) )
22 $error = $new->replace($old);
24 $error = $new->insert;
25 $svcnum = $new->svcnum;
29 $cgi->param('error', $error);
30 $cgi->param('ip_addr', $new->ip_addr);
31 print $cgi->redirect(popurl(2). "svc_broadband.cgi?". $cgi->query_string );
33 print $cgi->redirect(popurl(3). "view/svc_broadband.cgi?" . $svcnum );