From d43b88ccfbb6184669c5ef2d46eea2469db4a314 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 24 May 2013 18:58:42 -0400 Subject: [PATCH] Automatically filter test records on forced searches CRM-12610 --- CRM/Activity/Form/Search.php | 4 ++-- CRM/Contribute/Form/Search.php | 4 ++-- CRM/Event/Form/Search.php | 4 ++-- CRM/Member/Form/Search.php | 4 ++-- CRM/Pledge/Form/Search.php | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CRM/Activity/Form/Search.php b/CRM/Activity/Form/Search.php index da7e5efe90..ff3021cd13 100644 --- a/CRM/Activity/Form/Search.php +++ b/CRM/Activity/Form/Search.php @@ -327,8 +327,8 @@ class CRM_Activity_Form_Search extends CRM_Core_Form { $this->_formValues = CRM_Contact_BAO_SavedSearch::getFormValues($this->_ssID); } - // we don't show test activities in Contact Summary / User Dashboard - if (empty($this->_formValues['activity_test']) && $this->_single) { + // We don't show test records in summaries or dashboards + if (empty($this->_formValues['activity_test']) && $this->_force) { $this->_formValues["activity_test"] = 0; } diff --git a/CRM/Contribute/Form/Search.php b/CRM/Contribute/Form/Search.php index ead42ffdc1..78ba892114 100644 --- a/CRM/Contribute/Form/Search.php +++ b/CRM/Contribute/Form/Search.php @@ -358,8 +358,8 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form { $this->fixFormValues(); - // we don't show test contributions in Contact Summary / User Dashboard - if (empty($this->_formValues['contribution_test']) && $this->_single) { + // We don't show test records in summaries or dashboards + if (empty($this->_formValues['contribution_test']) && $this->_force) { $this->_formValues["contribution_test"] = 0; } diff --git a/CRM/Event/Form/Search.php b/CRM/Event/Form/Search.php index 739635e74f..df577e26d1 100644 --- a/CRM/Event/Form/Search.php +++ b/CRM/Event/Form/Search.php @@ -382,8 +382,8 @@ class CRM_Event_Form_Search extends CRM_Core_Form { $this->_formValues = CRM_Contact_BAO_SavedSearch::getFormValues($this->_ssID); } - // we don't show test registrations in Contact Summary / User Dashboard - if (empty($this->_formValues['participant_test']) && $this->_single) { + // We don't show test records in summaries or dashboards + if (empty($this->_formValues['participant_test']) && $this->_force) { $this->_formValues["participant_test"] = 0; } diff --git a/CRM/Member/Form/Search.php b/CRM/Member/Form/Search.php index 19f277cbed..8809c68344 100644 --- a/CRM/Member/Form/Search.php +++ b/CRM/Member/Form/Search.php @@ -309,8 +309,8 @@ class CRM_Member_Form_Search extends CRM_Core_Form { $this->fixFormValues(); - // we don't show test memberships in Contact Summary / User Dashboard - if (empty($this->_formValues['member_test']) && $this->_single) { + // We don't show test records in summaries or dashboards + if (empty($this->_formValues['member_test']) && $this->_force) { $this->_formValues["member_test"] = 0; } diff --git a/CRM/Pledge/Form/Search.php b/CRM/Pledge/Form/Search.php index a4d350db6f..bc06b24853 100644 --- a/CRM/Pledge/Form/Search.php +++ b/CRM/Pledge/Form/Search.php @@ -308,8 +308,8 @@ class CRM_Pledge_Form_Search extends CRM_Core_Form { $this->fixFormValues(); - // we don't show test pledges in Contact Summary / User Dashboard - if (empty($this->_formValues['pledge_test']) && $this->_single) { + // We don't show test records in summaries or dashboards + if (empty($this->_formValues['pledge_test']) && $this->_force) { $this->_formValues["pledge_test"] = 0; } -- 2.25.1