From: yashodha Date: Mon, 14 Mar 2016 07:26:23 +0000 (+0530) Subject: CRM-18220: Notice asking to be reported on Add Contacts to Organization and on Add... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d5cccc2e90e938d62d98d7d14a7116ff126f4ad0;p=civicrm-core.git CRM-18220: Notice asking to be reported on Add Contacts to Organization and on Add Members to Household forms ---------------------------------------- * CRM-18220: Notice asking to be reported on Add Contacts to Organization and on Add Members to Household forms https://issues.civicrm.org/jira/browse/CRM-18220 --- diff --git a/CRM/Contact/Form/Task/AddToHousehold.php b/CRM/Contact/Form/Task/AddToHousehold.php index b6a1443b32..95298009b3 100644 --- a/CRM/Contact/Form/Task/AddToHousehold.php +++ b/CRM/Contact/Form/Task/AddToHousehold.php @@ -93,7 +93,7 @@ class CRM_Contact_Form_Task_AddToHousehold extends CRM_Contact_Form_Task_AddToPa $this->set('searchDone', 0); if (!empty($_POST['_qf_AddToHousehold_refresh'])) { - $searchParams['contact_type'] = array('Household' => 'Household'); + $searchParams['contact_type'] = 'Household'; $searchParams['rel_contact'] = $this->params['name']; $this->search($this, $searchParams); $this->set('searchDone', 1); diff --git a/CRM/Contact/Form/Task/AddToOrganization.php b/CRM/Contact/Form/Task/AddToOrganization.php index d1eb806a43..145d77323a 100644 --- a/CRM/Contact/Form/Task/AddToOrganization.php +++ b/CRM/Contact/Form/Task/AddToOrganization.php @@ -101,7 +101,7 @@ class CRM_Contact_Form_Task_AddToOrganization extends CRM_Contact_Form_Task_AddT $this->set('searchDone', 0); if (!empty($_POST['_qf_AddToOrganization_refresh'])) { - $searchParams['contact_type'] = array('Organization' => 'Organization'); + $searchParams['contact_type'] = 'Organization'; $searchParams['rel_contact'] = $this->params['name']; $this->search($this, $searchParams); $this->set('searchDone', 1);