Fix assumption about test records CRM-12610
authorColeman Watts <coleman@civicrm.org>
Thu, 23 May 2013 02:43:34 +0000 (21:43 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 23 May 2013 02:43:34 +0000 (21:43 -0500)
CRM/Contribute/Form/Search.php

index cea7a2c33f669ed60c6be4d001cbe07a68b6a6f7..ead42ffdc1819ec02d833cb8f0a8ce04062f4272 100644 (file)
@@ -359,10 +359,7 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form {
     $this->fixFormValues();
 
     // we don't show test contributions in Contact Summary / User Dashboard
-    // in Search mode by default we hide test contributions
-    if (!CRM_Utils_Array::value('contribution_test',
-        $this->_formValues
-      )) {
+    if (empty($this->_formValues['contribution_test']) && $this->_single) {
       $this->_formValues["contribution_test"] = 0;
     }