add domain selection to advanced account report (side effect on RT#4623)
[freeside.git] / httemplate / search / svc_acct.cgi
index d8451f2..2324399 100755 (executable)
@@ -83,6 +83,9 @@ if ( $cgi->param('domain') ) {
     push @extra_sql, 'domsvc = '. $svc_domain->svcnum;
   }
 }
+if ( $cgi->param('domsvc') =~ /^(\d+)$/ ) { 
+  push @extra_sql, "domsvc = $1";
+}
 
 my $timepermonth = '';