From: Ivan Kohler Date: Wed, 1 Aug 2018 21:07:50 +0000 (-0700) Subject: spacing X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=922f9f7ee1ff081a4098d49449c63043d551897f;hp=bb43c7254ddd543d50c230a36a86dd20771decaf spacing --- diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm index a0cf86f36..2460250a6 100644 --- a/FS/FS/cust_main/Search.pm +++ b/FS/FS/cust_main/Search.pm @@ -232,9 +232,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)), @@ -242,7 +242,7 @@ sub smart_search { " LOWER(company) = ". dbh->quote(lc($company)), $agentnums_sql, ), - } ), + } ); #contacts? # probably not necessary for the "something a browser remembered" case