From 2e2acd1fdc567ea6ee3d4ada9f20c2e763cf117e Mon Sep 17 00:00:00 2001 From: yashodha Date: Fri, 19 Jul 2013 14:45:00 +0530 Subject: [PATCH] CRM-13083 --- CRM/Activity/Form/Search.php | 13 ++++--------- templates/CRM/Activity/Form/Search/Common.tpl | 7 ++++--- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/CRM/Activity/Form/Search.php b/CRM/Activity/Form/Search.php index b3403e087c..4a77b129dc 100644 --- a/CRM/Activity/Form/Search.php +++ b/CRM/Activity/Form/Search.php @@ -332,9 +332,6 @@ class CRM_Activity_Form_Search extends CRM_Core_Form { $this->_formValues["activity_test"] = 0; } - if (!CRM_Utils_Array::value('activity_contact_name', $this->_formValues) && !CRM_Utils_Array::value('contact_id', $this->_formValues)) { - $this->_formValues['activity_role'] = NULL; - } CRM_Core_BAO_CustomValue::fixFieldValueOfTypeMemo($this->_formValues); $this->_queryParams = CRM_Contact_BAO_Query::convertFormValues($this->_formValues); @@ -397,11 +394,6 @@ class CRM_Activity_Form_Search extends CRM_Core_Form { return; } - $this->_formValues['activity_role'] = 1; - $this->_formValues['activity_contact_name'] = ''; - $this->_defaults['activity_role'] = 1; - $this->_defaults['activity_contact_name'] = ''; - $status = CRM_Utils_Request::retrieve('status', 'String', $this); if ($status) { $this->_formValues['activity_status'] = $status; @@ -446,7 +438,10 @@ class CRM_Activity_Form_Search extends CRM_Core_Form { if ($signupType) { //$this->_formValues['activity_type_id'] = array(); - + $this->_formValues['activity_role'] = 1; + $this->_formValues['activity_contact_name'] = ''; + $this->_defaults['activity_role'] = 1; + $this->_defaults['activity_contact_name'] = ''; $activityTypes = CRM_Core_PseudoConstant::activityType(TRUE, FALSE, FALSE, 'name'); $renew = CRM_Utils_Array::key('Membership Renewal', $activityTypes); diff --git a/templates/CRM/Activity/Form/Search/Common.tpl b/templates/CRM/Activity/Form/Search/Common.tpl index a958742327..6a78ce65c3 100644 --- a/templates/CRM/Activity/Form/Search/Common.tpl +++ b/templates/CRM/Activity/Form/Search/Common.tpl @@ -79,9 +79,10 @@
{$form.activity_contact_name.html} -
{ts}Complete OR partial name of the{/ts} - {ts}Source Contact{/ts} - {ts}Assignee Contact{/ts} +
{ts}Complete OR partial name{/ts} + {ts} of the Source Contact{/ts} + {ts} of the Assignee Contact{/ts} + {ts} of the Target Contact{/ts}
-- 2.25.1