summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2019-04-03 10:08:11 -0400
committerChristopher Burger <burgerc@freeside.biz>2019-04-03 10:08:11 -0400
commitb1d26754480ee77604521236d9cf9952df2d3e12 (patch)
treece41d9887c091975199d81086f123e1d1f06d2a9
parent08de6e70b0862654801677ca9967e2d0d92ff7a5 (diff)
RT# 83090 - updated customer search to allow multiple orderbys
-rw-r--r--FS/FS/cust_main/Search.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm
index 9cd870b..7216fe6 100644
--- a/FS/FS/cust_main/Search.pm
+++ b/FS/FS/cust_main/Search.pm
@@ -618,7 +618,7 @@ sub search {
my $dbh = dbh;
my @where = ();
- my $orderby;
+ my $orderby = "ORDER BY cust_main.custnum";
# initialize these to prevent warnings
$params = {
@@ -937,7 +937,7 @@ sub search {
}
}
- $orderby ||= "ORDER BY cust_main.$field";
+ $orderby .= ", cust_main.$field";
}
@@ -1115,7 +1115,7 @@ sub search {
# setup queries, subs, etc. for the search
##
- $orderby ||= 'ORDER BY custnum';
+ $orderby ||= 'ORDER BY cust_main.custnum';
# here is the agent virtualization
push @where,