From b5d1c1bdd51678f7602e2b45d399b8b25ea296bc Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Mon, 21 Sep 2015 13:23:51 -0400 Subject: [PATCH] added a hard limit --- CRM/Contact/BAO/Contact/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Contact/Utils.php b/CRM/Contact/BAO/Contact/Utils.php index 1a4139a00c..6fd70a85dd 100644 --- a/CRM/Contact/BAO/Contact/Utils.php +++ b/CRM/Contact/BAO/Contact/Utils.php @@ -954,7 +954,7 @@ Group By componentId"; FROM civicrm_contact WHERE contact_type = %1 AND ({$idFldName} IS NULL - OR ( {$idFldName} IS NOT NULL AND ({$displayFldName} IS NULL OR {$displayFldName} = '')) )"; + OR ( {$idFldName} IS NOT NULL AND ({$displayFldName} IS NULL OR {$displayFldName} = '')) ) LIMIT 800"; } $dao = CRM_Core_DAO::executeQuery($sql, array(1 => array($contactType, 'String'))); -- 2.25.1