summaryrefslogtreecommitdiff
path: root/httemplate/search/svc_www.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/search/svc_www.cgi')
-rwxr-xr-xhttemplate/search/svc_www.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/search/svc_www.cgi b/httemplate/search/svc_www.cgi
index 2e3c4615b..adc31c88a 100755
--- a/httemplate/search/svc_www.cgi
+++ b/httemplate/search/svc_www.cgi
@@ -96,7 +96,8 @@ my $sql_query = {
'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,
};