fix silly bug sizing username field when adding an account (and username max is not...
[freeside.git] / httemplate / edit / svc_acct.cgi
index f1b8b80..57227d4 100755 (executable)
@@ -97,7 +97,7 @@ if ( $svc_acct->_password ) {
 }
 
 my $ulen = $conf->config('usernamemax')
-           || $svc_acct->dbdef_table->column('username')->length;
+           || dbdef->table('svc_acct')->column('username')->length;
 my $ulen2 = $ulen+2;
 
 my $pmax = $conf->config('passwordmax') || 8;