projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding export to read mailbox status information, RT#15987
[freeside.git]
/
httemplate
/
search
/
svc_phone.cgi
diff --git
a/httemplate/search/svc_phone.cgi
b/httemplate/search/svc_phone.cgi
index
21e1a92
..
2943408
100644
(file)
--- a/
httemplate/search/svc_phone.cgi
+++ b/
httemplate/search/svc_phone.cgi
@@
-102,7
+102,7
@@
if ( $cgi->param('magic') =~ /^(all|unlinked)$/ ) {
my $f_w =
" FROM cdr_termination LEFT JOIN cdr USING ( acctid ) ".
my $f_w =
" FROM cdr_termination LEFT JOIN cdr USING ( acctid ) ".
- " WHERE cdr.
acctid = svc_phone.phonenum ". # XXX connectone-specific
+ " WHERE cdr.
carrierid = CAST(svc_phone.phonenum AS BIGINT) ". # XXX connectone-specific, has to match svc_external.id :/
$and_date;
push @select,
$and_date;
push @select,
@@
-161,7
+161,8
@@
my $sql_query = {
'cust_main.custnum',
FS::UI::Web::cust_sql_fields(),
),
'cust_main.custnum',
FS::UI::Web::cust_sql_fields(),
),
- 'extra_sql' => "$extra_sql $orderby",
+ 'extra_sql' => $extra_sql,
+ 'order_by' => $orderby,
'addl_from' => $addl_from,
};
'addl_from' => $addl_from,
};