Automatically filter test records on forced searches CRM-12610
authorColeman Watts <coleman@civicrm.org>
Fri, 24 May 2013 22:58:42 +0000 (18:58 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 24 May 2013 22:58:42 +0000 (18:58 -0400)
CRM/Activity/Form/Search.php
CRM/Contribute/Form/Search.php
CRM/Event/Form/Search.php
CRM/Member/Form/Search.php
CRM/Pledge/Form/Search.php

index da7e5efe902e374d3278fdc4e2b1194708c11754..ff3021cd136534e07b8702e1a9558b0864dacff8 100644 (file)
@@ -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;
     }
 
index ead42ffdc1819ec02d833cb8f0a8ce04062f4272..78ba89211414f5c8c00276fdd38fe296c0ecde49 100644 (file)
@@ -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;
     }
 
index 739635e74f289f16d6216c1f9f4c07f21cc81b9d..df577e26d178e1d3daf35df4ed87d78b5591e45f 100644 (file)
@@ -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;
     }
 
index 19f277cbed5c695ace2b51f55c09f4b0771d2e55..8809c683440014ef1f5731f4fe0374cf44d458ae 100644 (file)
@@ -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;
     }
 
index a4d350db6ffb0ef6c65a9493828432f349bc38bd..bc06b24853b766ca996e5b10d79aa1f4038d7dde 100644 (file)
@@ -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;
     }