From: ivan Date: Sun, 6 Aug 2006 21:37:57 +0000 (+0000) Subject: make sure default RADIUS groups don't override ones for existing records X-Git-Tag: BEFORE_FINAL_MASONIZE~54 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=81676223e719782d4197841b78434df977457865 make sure default RADIUS groups don't override ones for existing records --- diff --git a/FS/FS/svc_Common.pm b/FS/FS/svc_Common.pm index 17942c7ec..907f35fa0 100644 --- a/FS/FS/svc_Common.pm +++ b/FS/FS/svc_Common.pm @@ -52,7 +52,8 @@ sub new { my $newhash = shift; $self->{'Hash'} = { map { $_ => $newhash->{$_} } qw(svcnum svcpart) }; - $self->setdefault( $self->_fieldhandlers ); + $self->setdefault( $self->_fieldhandlers ) + unless $self->svcnum; $self->{'Hash'}{$_} = $newhash->{$_} foreach grep { defined($newhash->{$_}) && length($newhash->{$_}) }