projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optimize customer list (fix option caching in 3.x), RT#20173
[freeside.git]
/
httemplate
/
search
/
cust_svc.html
diff --git
a/httemplate/search/cust_svc.html
b/httemplate/search/cust_svc.html
index
b245d31
..
3b77043
100644
(file)
--- a/
httemplate/search/cust_svc.html
+++ b/
httemplate/search/cust_svc.html
@@
-47,8
+47,8
@@
die "access denied"
my $sql_query;
my $sql_query;
-my $orderby = 'ORDER BY svcnum'; #has to be ordered by something
- #for pagination to work
+my $orderby = 'ORDER BY
cust_svc.
svcnum'; #has to be ordered by something
+
#for pagination to work
if ( length( $cgi->param('search_svc') ) ) {
if ( length( $cgi->param('search_svc') ) ) {
@@
-96,7
+96,7
@@
if ( length( $cgi->param('search_svc') ) ) {
my $extra_sql = ' WHERE '. join(' AND ', @extra_sql );
$sql_query = {
my $extra_sql = ' WHERE '. join(' AND ', @extra_sql );
$sql_query = {
- 'select' => '
svcnum
',
+ 'select' => '
cust_svc.*, part_svc.*
',
'table' => 'cust_svc',
'addl_from' => $addl_from,
'hashref' => {},
'table' => 'cust_svc',
'addl_from' => $addl_from,
'hashref' => {},
@@
-105,9
+105,10
@@
if ( length( $cgi->param('search_svc') ) ) {
}
}
+# at this point the query must provide all fields from
+# cust_svc and part_svc, and must include join_cust_main.
$sql_query->{'select'} = join(', ',
$sql_query->{'select'},
$sql_query->{'select'} = join(', ',
$sql_query->{'select'},
- #'part_svc.*',
'cust_main.custnum',
FS::UI::Web::cust_sql_fields(),
);
'cust_main.custnum',
FS::UI::Web::cust_sql_fields(),
);