From 2594c62a8915496a5dde2db46f2f3bcba3f86a43 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 26 Jun 2009 18:53:46 +0000 Subject: [PATCH] in smart_search, move duplicate elimination bits so that they're used even when doing an exact search on a browser-remembered result --- FS/FS/cust_main.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index dd99edab3..3f23346db 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -8110,12 +8110,12 @@ sub smart_search { } - #eliminate duplicates - my %saw = (); - @cust_main = grep { !$saw{$_->custnum}++ } @cust_main; - } + #eliminate duplicates + my %saw = (); + @cust_main = grep { !$saw{$_->custnum}++ } @cust_main; + @cust_main; } -- 2.11.0