diff options
author | Ivan Kohler <ivan@freeside.biz> | 2018-08-01 14:07:53 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2018-08-01 14:07:53 -0700 |
commit | 45320da7b03e9dc899b77eadf8f7bf401522da48 (patch) | |
tree | 5a8b8769ebf46475433ba72970a8d1c8176f4d03 /FS/FS/cust_main/Search.pm | |
parent | c28e2962451d5e2327705b934d92dbba7f93cc58 (diff) |
spacing
Diffstat (limited to 'FS/FS/cust_main/Search.pm')
-rw-r--r-- | FS/FS/cust_main/Search.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm index def180d..c27bfba 100644 --- a/FS/FS/cust_main/Search.pm +++ b/FS/FS/cust_main/Search.pm @@ -231,9 +231,9 @@ sub smart_search { #doesn't throw a wrench in the works) push @cust_main, qsearch( { - 'table' => 'cust_main', - 'hashref' => { %options }, - 'extra_sql' => + 'table' => 'cust_main', + 'hashref' => { %options }, + 'extra_sql' => ( keys(%options) ? ' AND ' : ' WHERE ' ). join(' AND ', " LOWER(first) = ". dbh->quote(lc($first)), @@ -241,7 +241,7 @@ sub smart_search { " LOWER(company) = ". dbh->quote(lc($company)), $agentnums_sql, ), - } ), + } ); #contacts? # probably not necessary for the "something a browser remembered" case |