diff options
author | ivan <ivan> | 2001-08-19 08:15:10 +0000 |
---|---|---|
committer | ivan <ivan> | 2001-08-19 08:15:10 +0000 |
commit | ddb8528c025f6bef778f08885ae1411122874207 (patch) | |
tree | 576e0961cdafe0f877b0670e30ab0220ad861f6b /FS | |
parent | e7b0bcbf0b1feff0e0e38d5858f512286a4d0ba7 (diff) |
set fixed fields before checking domsvc
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/svc_acct.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 9f95f4007..b0e007f6c 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -381,18 +381,18 @@ Sets any fixed values; see L<FS::part_svc>. sub check { my $self = shift; - my $error = - $self->ut_numbern('svcnum') - || $self->ut_number('domsvc') - ; - return $error if $error; - my($recref) = $self->hashref; my $x = $self->setfixed; return $x unless ref($x); my $part_svc = $x; + my $error = + $self->ut_numbern('svcnum') + || $self->ut_number('domsvc') + ; + return $error if $error; + my $ulen = $usernamemax || $self->dbdef_table->column('username')->length; $recref->{username} =~ /^([a-z0-9_\-\.]{$usernamemin,$ulen})$/ or return "Illegal username"; @@ -558,7 +558,7 @@ sub radius_check { =head1 VERSION -$Id: svc_acct.pm,v 1.21 2001-08-13 00:21:54 ivan Exp $ +$Id: svc_acct.pm,v 1.22 2001-08-19 08:15:10 ivan Exp $ =head1 BUGS |