service smart search, #23297, fallout from #22385
authorMark Wells <mark@freeside.biz>
Fri, 31 May 2013 22:36:42 +0000 (15:36 -0700)
committerMark Wells <mark@freeside.biz>
Fri, 31 May 2013 22:36:42 +0000 (15:36 -0700)
FS/FS/cust_svc.pm
httemplate/search/cust_svc.html

index 6274107..94f04e9 100644 (file)
@@ -890,7 +890,8 @@ sub smart_search_param {
   (
     'table'     => 'cust_svc',
     'select'    => 'svc_all.svcnum AS svcnum, '.
-                   'COALESCE(svc_all.svcdb, part_svc.svcdb) AS svcdb',
+                   'COALESCE(svc_all.svcdb, part_svc.svcdb) AS svcdb, '.
+                   'cust_svc.*',
     'addl_from' => $addl_from,
     'hashref'   => {},
     'extra_sql' => $extra_sql,
index b245d31..6fa9390 100644 (file)
@@ -47,8 +47,8 @@ die "access denied"
 
 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') ) ) {