CRM-18220: Notice asking to be reported on Add Contacts to Organization and on Add...
authoryashodha <yashodha.chaku@webaccessglobal.com>
Mon, 14 Mar 2016 07:26:23 +0000 (12:56 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Mon, 14 Mar 2016 07:26:23 +0000 (12:56 +0530)
----------------------------------------
* 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

CRM/Contact/Form/Task/AddToHousehold.php
CRM/Contact/Form/Task/AddToOrganization.php

index b6a1443b325c880f889aded63f1abaca7edf858f..95298009b372032fcdef10c397aabfb680a104fd 100644 (file)
@@ -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);
index d1eb806a430b361807a4caa398de34113ded57a8..145d77323aea77e26626c87c2a4babc49027851a 100644 (file)
@@ -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);