X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_svc.pm;h=2bc20ff5892d2ab2e87722a5559738167c34d1f5;hb=d33015393db77e9bc8e0deeb1a39500b3b5a49eb;hp=9c24b00134c0026389602802c15e81c7f9f3eeed;hpb=c836e10e2ba51bf5f0e1671484db367248218a0c;p=freeside.git diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm index 9c24b0013..2bc20ff58 100644 --- a/FS/FS/cust_svc.pm +++ b/FS/FS/cust_svc.pm @@ -178,6 +178,7 @@ sub replace { if ( $new->svcpart != $old->svcpart ) { my $svc_x = $new->svc_x; my $new_svc_x = ref($svc_x)->new({$svc_x->hash, svcpart=>$new->svcpart }); + local($FS::Record::nowarn_identical) = 1; my $error = $new_svc_x->replace($svc_x); if ( $error ) { $dbh->rollback if $oldAutoCommit; @@ -308,14 +309,15 @@ sub _svc_label { } elsif ( $svcdb eq 'svc_domain' ) { $tag = $svc_x->getfield('domain'); } elsif ( $svcdb eq 'svc_www' ) { - my $domain_record = $svc_x->domain_record; + my $domain_record = $svc_x->domain_record(@_); $tag = $domain_record->zone; } elsif ( $svcdb eq 'svc_broadband' ) { $tag = $svc_x->ip_addr; } elsif ( $svcdb eq 'svc_external' ) { my $conf = new FS::Conf; if ( $conf->config('svc_external-display_type') eq 'artera_turbo' ) { - $tag = sprintf('%010d', $svc_x->id). '-'. sprintf('%010x', hex($svc_x->title) ); + $tag = sprintf('%010d', $svc_x->id). '-'. + substr('0000000000'.uc($svc_x->title), -10); } else { $tag = $svc_x->id. ': '. $svc_x->title; }