combine ticket notification scrips, #15353
[freeside.git] / httemplate / search / svc_external.cgi
index f061754..cb51d44 100755 (executable)
@@ -121,7 +121,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,
 };