Merge pull request #1625 from pradpnayak/CRM-13340
[civicrm-core.git] / CRM / Member / Form / Search.php
index 5f9b66c0a74d1e6c0a1d7290cb4c8de087c045fc..747ad25d0aafe43acaf0689dd581e0e23856e3fa 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.4                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2013                                |
  +--------------------------------------------------------------------+
@@ -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;
     }
 
@@ -326,7 +326,7 @@ class CRM_Member_Form_Search extends CRM_Core_Form {
       // check actionName and if next, then do not repeat a search, since we are going to the next page
 
       // hack, make sure we reset the task values
-      $stateMachine = &$this->controller->getStateMachine();
+      $stateMachine = $this->controller->getStateMachine();
       $formName = $stateMachine->getTaskFormName();
       $this->controller->resetPage($formName);
       return;