From 64730bda4ec6abbe4b5ca153150571ed80e49857 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Thu, 4 Apr 2019 10:59:48 -0400 Subject: RT# 75357 - Prospects can now be disabled --- FS/FS/prospect_main.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'FS') diff --git a/FS/FS/prospect_main.pm b/FS/FS/prospect_main.pm index c54c569c3..5d909a3ea 100644 --- a/FS/FS/prospect_main.pm +++ b/FS/FS/prospect_main.pm @@ -462,7 +462,7 @@ sub search { # here is the agent virtualization push @where, $FS::CurrentUser::CurrentUser->agentnums_sql; - my $extra_sql = scalar(@where) ? ' WHERE '. join(' AND ', @where) : ''; + my $extra_sql = scalar(@where) ? ' WHERE prospect_main.custnum IS NULL AND '. join(' AND ', @where) : ''; my $count_query = "SELECT COUNT(*) FROM prospect_main $extra_sql"; -- cgit v1.2.1