diff options
author | ivan <ivan> | 2006-07-05 14:55:28 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-07-05 14:55:28 +0000 |
commit | 1f759ea4c4755370080bf72f339e18ab863756c7 (patch) | |
tree | d20878df5effd6fc39935e2df39ec81bea11379a | |
parent | fae06b0c549ff10468804c7283f0a636a7320e4a (diff) |
patch to fix fuzzy searching from Ryan Gunn
-rw-r--r-- | FS/FS/cust_main.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 511762e63..cbcf6cc51 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -3886,7 +3886,7 @@ sub smart_search { push @cust_main, qsearch( { 'table' => 'cust_main', 'hashref' => { 'last' => { 'op' => 'ILIKE', - 'value' => "%$q_value%" }, + 'value' => "%$value%" }, %options, }, 'extra_sql' => " AND $agentnums_sql", #agent virtualizaiton @@ -3894,7 +3894,7 @@ sub smart_search { push @cust_main, qsearch( { 'table' => 'cust_main', 'hashref' => { 'ship_last' => { 'op' => 'ILIKE', - 'value' => "%$q_value%" }, + 'value' => "%$value%" }, %options, }, 'extra_sql' => " AND $agentnums_sql", #agent virtualization @@ -3904,7 +3904,7 @@ sub smart_search { push @cust_main, qsearch( { 'table' => 'cust_main', 'hashref' => { 'company' => { 'op' => 'ILIKE', - 'value' => "%$q_value%" }, + 'value' => "%$value%" }, %options, }, 'extra_sql' => " AND $agentnums_sql", #agent virtualization @@ -3912,7 +3912,7 @@ sub smart_search { push @cust_main, qsearch( { 'table' => 'cust_main', 'hashref' => { 'ship_company' => { 'op' => 'ILIKE', - 'value' => "%$q_value%" }, + 'value' => "%$value%" }, %options, }, 'extra_sql' => " AND $agentnums_sql", #agent virtualization |