projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
accounts w/time remaining search
[freeside.git]
/
httemplate
/
search
/
svc_acct.cgi
diff --git
a/httemplate/search/svc_acct.cgi
b/httemplate/search/svc_acct.cgi
index
a702d60
..
9ccac5d
100755
(executable)
--- a/
httemplate/search/svc_acct.cgi
+++ b/
httemplate/search/svc_acct.cgi
@@
-71,7
+71,7
@@
if ( $cgi->param('magic') =~ /^(all|unlinked)$/ ) {
$sortby = "LOWER($sortby)"
if $sortby eq 'username';
push @extra_sql, "$sortby IS NOT NULL"
$sortby = "LOWER($sortby)"
if $sortby eq 'username';
push @extra_sql, "$sortby IS NOT NULL"
- if $sortby eq 'uid';
+ if $sortby eq 'uid'
|| $sortby eq 'seconds'
;
$orderby = "ORDER BY $sortby";
}
$orderby = "ORDER BY $sortby";
}
@@
-132,7
+132,9
@@
my $addl_from = ' LEFT JOIN cust_svc USING ( svcnum ) '.
' LEFT JOIN cust_main USING ( custnum ) ';
#here is the agent virtualization
' LEFT JOIN cust_main USING ( custnum ) ';
#here is the agent virtualization
-push @extra_sql, $FS::CurrentUser::CurrentUser->agentnums_sql;
+push @extra_sql, $FS::CurrentUser::CurrentUser->agentnums_sql(
+ 'null_right' => 'View/link unlinked services'
+ );
my $extra_sql =
scalar(@extra_sql)
my $extra_sql =
scalar(@extra_sql)