in smart_search, move duplicate elimination bits so that they're used even when doing...
[freeside.git] / FS / FS / cust_main.pm
index dd99eda..3f23346 100644 (file)
@@ -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;
 
 }