CRM-15477
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 20 Oct 2014 09:39:04 +0000 (15:09 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 20 Oct 2014 09:39:04 +0000 (15:09 +0530)
CRM/Contribute/Form/Search.php

index 5a8a86f08f0e273868ba12d1d8e39b903a3df0ad..ab349f2a9f67261700a4f5a32573b70f4d30af9f 100644 (file)
@@ -261,7 +261,7 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search {
     $this->fixFormValues();
 
     // We don't show test records in summaries or dashboards
-    if (empty($this->_formValues['contribution_test']) && $this->_force) {
+    if (empty($this->_formValues['contribution_test']) && $this->_force && !empty($this->_context) && $this->_context == 'dashboard') {
       $this->_formValues["contribution_test"] = 0;
     }