Skip to content
Snippets Groups Projects
Commit 4647f343 authored by pratik.joshi's avatar pratik.joshi
Browse files

Merge pull request #1212 from yashodha/trunk

CRM-13083
parents 040686ed 2e2acd1f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -79,9 +79,10 @@
</span>
<div>
{$form.activity_contact_name.html}
<div class="description font-italic">{ts}Complete OR partial name of the{/ts}
<span class="contact-name-option option-1">{ts}Source Contact{/ts}</span>
<span class="contact-name-option option-2">{ts}Assignee Contact{/ts}</span>
<div class="description font-italic">{ts}Complete OR partial name{/ts}
<span class="contact-name-option option-1">{ts} of the Source Contact{/ts}</span>
<span class="contact-name-option option-2">{ts} of the Assignee Contact{/ts}</span>
<span class="contact-name-option option-3">{ts} of the Target Contact{/ts}</span>
</div>
</div>
</td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment