<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
$this->fixFormValues();
- // we don't show test memberships in Contact Summary / User Dashboard
- // in Search mode by default we hide test memberships
- if (!CRM_Utils_Array::value('member_test',
- $this->_formValues
- )) {
+ // We don't show test records in summaries or dashboards
+ if (empty($this->_formValues['member_test']) && $this->_force) {
$this->_formValues["member_test"] = 0;
}
// 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;