diff options
author | ivan <ivan> | 2006-09-26 18:55:59 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-09-26 18:55:59 +0000 |
commit | 0ce3ddd40bf1f9142e3fdb4f3b3da15ac268c720 (patch) | |
tree | 376e42ae8491d03b45e15d0a8511190057616bed /httemplate/search/svc_acct.cgi | |
parent | 8c8c4eb5558e353543b9f3bd4a96ad982faa67b7 (diff) |
fix username@domain search
Diffstat (limited to 'httemplate/search/svc_acct.cgi')
-rwxr-xr-x | httemplate/search/svc_acct.cgi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index d293e2455..2a1414bea 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -11,6 +11,18 @@ % push @extra_sql, 'pkgnum IS NULL'; %} % +% if ( $cgi->param('domain') ) { +% my $svc_domain = +% qsearchs('svc_domain', { 'domain' => $cgi->param('domain') } ); +% unless ( $svc_domain ) { +% #it would be nice if this looked more like the other "not found" +% #errors, but this will do for now. +% eidiot "Domain ". $cgi->param('domain'). " not found at all"; +% } else { +% push @extra_sql, 'domsvc = '. $svc_domain->svcnum; +% } +% } +% %if ( $query eq 'svcnum' ) { % #$orderby = "ORDER BY svcnum"; %} elsif ( $query eq 'username' ) { |