X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fsvc_acct.cgi;h=a3609a2ed0a4b4356c264e3d176f7b2efa583e4a;hp=d2389baf0221ed13d3589adb98cc2d1a143cbfea;hb=2559f2146ea5bdb013f3a013f1179f14b638a742;hpb=e5dc922210f963b16df55ebf40ebffd60d9aa09a diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index d2389baf0..a3609a2ed 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -157,6 +157,16 @@ if ( $cgi->param('magic') =~ /^(all|unlinked)$/ ) { } +} elsif ( $cgi->param('magic') =~ /^nologin$/ ) { + + if ( $cgi->param('sortby') =~ /^(\w+)$/ ) { + my $sortby = $1; + $sortby = "LOWER($sortby)" + if $sortby eq 'username'; + push @extra_sql, "last_login IS NULL"; + $orderby = "ORDER BY $sortby"; + } + } elsif ( $cgi->param('popnum') =~ /^(\d+)$/ ) { push @extra_sql, "popnum = $1"; $orderby = "ORDER BY LOWER(username)";