From aee234932da8fef020cbc0284611ed1f4a1af792 Mon Sep 17 00:00:00 2001 From: yashodha Date: Fri, 23 Aug 2013 15:47:47 +0530 Subject: [PATCH] clean up (CRM-13205) --- CRM/Activity/Form/Search.php | 2 -- CRM/Activity/Page/UserDashboard.php | 1 - CRM/Contact/BAO/Query.php | 1 - templates/CRM/Activity/Form/Search/Common.tpl | 9 ++------- 4 files changed, 2 insertions(+), 11 deletions(-) diff --git a/CRM/Activity/Form/Search.php b/CRM/Activity/Form/Search.php index 561b7fa61e..40ba152c6d 100644 --- a/CRM/Activity/Form/Search.php +++ b/CRM/Activity/Form/Search.php @@ -439,9 +439,7 @@ 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/CRM/Activity/Page/UserDashboard.php b/CRM/Activity/Page/UserDashboard.php index bdc1fda2ac..6620bac8d9 100644 --- a/CRM/Activity/Page/UserDashboard.php +++ b/CRM/Activity/Page/UserDashboard.php @@ -53,7 +53,6 @@ class CRM_Activity_Page_UserDashboard extends CRM_Contact_Page_View_UserDashBoar $controller->set('cid', $this->_contactId); $controller->set('status', array(1 => 'on')); $controller->set('activity_role', 2); - $controller->set('activity_contact_name', 'd6'); $controller->set('force', 1); $controller->process(); $controller->run(); diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index a74d2d81d8..303d130dc0 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -1645,7 +1645,6 @@ class CRM_Contact_BAO_Query { case 'activity_tags': case 'activity_taglist': case 'activity_test': - case 'activity_contact_name': case 'activity_campaign_id': case 'activity_engagement_level': case 'activity_id': diff --git a/templates/CRM/Activity/Form/Search/Common.tpl b/templates/CRM/Activity/Form/Search/Common.tpl index 10b72df776..4d256f02b5 100644 --- a/templates/CRM/Activity/Form/Search/Common.tpl +++ b/templates/CRM/Activity/Form/Search/Common.tpl @@ -73,12 +73,12 @@ ( + return false;"> {ts}clear{/ts} ) +
- {$form.activity_contact_name.html}
{ts}Complete OR partial name{/ts} {ts} of the Source Contact{/ts} {ts} of the Assignee Contact{/ts} @@ -162,15 +162,10 @@ campaignContext="componentSearch" campaignTrClass='' campaignTdClass=''} cj('[name=activity_role]:input').change(function() { cj('.description .contact-name-option').hide(); if (cj(this).is(':checked')) { - cj('#activity_contact_name').parent().show(); cj('.description .option-' + cj(this).val()).show(); } }).change(); -if (cj('[name=activity_role]:checked').length < 1) { - cj('#activity_contact_name').parent().hide(); -} - function showCustomData(chkbox) { if (document.getElementById(chkbox).checked) { //inject Searchable activity custom fields according to activity type selected -- 2.25.1