From: Eileen McNaughton Date: Sat, 9 May 2015 09:38:52 +0000 (+1200) Subject: Removed unused parameter from function signature X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5fc3ea244918837ef10e58b172ab84a97f190b86;p=civicrm-core.git Removed unused parameter from function signature --- diff --git a/CRM/Activity/BAO/Activity.php b/CRM/Activity/BAO/Activity.php index a6cb989faa..e26d9aa20f 100644 --- a/CRM/Activity/BAO/Activity.php +++ b/CRM/Activity/BAO/Activity.php @@ -2660,7 +2660,7 @@ INNER JOIN civicrm_option_group grp ON ( grp.id = val.option_group_id AND grp.n } } } - CRM_Core_BAO_CustomValueTable::postProcess($customParams, CRM_Core_DAO::$_nullArray, 'civicrm_activity', + CRM_Core_BAO_CustomValueTable::postProcess($customParams, 'civicrm_activity', $params['mainActivityId'], 'Activity' ); } diff --git a/CRM/Case/Form/CustomData.php b/CRM/Case/Form/CustomData.php index c8087c264e..9862df9adc 100644 --- a/CRM/Case/Form/CustomData.php +++ b/CRM/Case/Form/CustomData.php @@ -136,12 +136,10 @@ class CRM_Case_Form_CustomData extends CRM_Core_Form { */ public function postProcess() { $params = $this->controller->exportValues($this->_name); - $fields = array(); $transaction = new CRM_Core_Transaction(); CRM_Core_BAO_CustomValueTable::postProcess($params, - $fields, 'civicrm_case', $this->_entityID, 'Case' diff --git a/CRM/Contact/Form/CustomData.php b/CRM/Contact/Form/CustomData.php index 94e790b8d1..1d0f1f2b42 100644 --- a/CRM/Contact/Form/CustomData.php +++ b/CRM/Contact/Form/CustomData.php @@ -297,7 +297,6 @@ class CRM_Contact_Form_CustomData extends CRM_Core_Form { $params = $this->controller->exportValues($this->_name); CRM_Core_BAO_CustomValueTable::postProcess($params, - $this->_groupTree[$this->_groupID]['fields'], 'civicrm_contact', $this->_tableID, $this->_entityType diff --git a/CRM/Contact/Form/Inline/CustomData.php b/CRM/Contact/Form/Inline/CustomData.php index 8f8de2323a..e0b3f8433d 100644 --- a/CRM/Contact/Form/Inline/CustomData.php +++ b/CRM/Contact/Form/Inline/CustomData.php @@ -96,7 +96,6 @@ class CRM_Contact_Form_Inline_CustomData extends CRM_Contact_Form_Inline { // Get the form values and groupTree $params = $this->controller->exportValues($this->_name); CRM_Core_BAO_CustomValueTable::postProcess($params, - $this->_groupTree[$this->_groupID]['fields'], 'civicrm_contact', $this->_contactId, $this->_entityType diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index 32f76c753c..5a1a5d55b9 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -1484,7 +1484,6 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr if ($online && $contribution) { CRM_Core_BAO_CustomValueTable::postProcess($form->_params, - CRM_Core_DAO::$_nullArray, 'civicrm_contribution', $contribution->id, 'Contribution' diff --git a/CRM/Core/BAO/CustomValueTable.php b/CRM/Core/BAO/CustomValueTable.php index 4892559ae0..fade2e6c31 100644 --- a/CRM/Core/BAO/CustomValueTable.php +++ b/CRM/Core/BAO/CustomValueTable.php @@ -354,14 +354,13 @@ class CRM_Core_BAO_CustomValueTable { * Post process function. * * @param array $params - * @param $customFields * @param $entityTable * @param int $entityID * @param $customFieldExtends */ - public static function postProcess(&$params, &$customFields, $entityTable, $entityID, $customFieldExtends) { + public static function postProcess(&$params, $entityTable, $entityID, $customFieldExtends) { $customData = CRM_Core_BAO_CustomField::postProcess($params, - $customFields, + array(), $entityID, $customFieldExtends ); diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 3afc3d1820..812c10af5c 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1260,7 +1260,6 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment //add custom data for participant CRM_Core_BAO_CustomValueTable::postProcess($this->_params, - CRM_Core_DAO::$_nullArray, 'civicrm_participant', $participants[0]->id, 'Participant' diff --git a/CRM/Event/Form/Registration.php b/CRM/Event/Form/Registration.php index 8cc9e4db35..5c7c206ae4 100644 --- a/CRM/Event/Form/Registration.php +++ b/CRM/Event/Form/Registration.php @@ -755,7 +755,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { } CRM_Core_BAO_CustomValueTable::postProcess($this->_params, - CRM_Core_DAO::$_nullArray, 'civicrm_participant', $participant->id, 'Participant' diff --git a/CRM/Member/BAO/Membership.php b/CRM/Member/BAO/Membership.php index 3a97ded924..4fe7d86a26 100644 --- a/CRM/Member/BAO/Membership.php +++ b/CRM/Member/BAO/Membership.php @@ -1407,7 +1407,6 @@ AND civicrm_membership.is_test = %2"; foreach ($createdMemberships as $createdMembership) { CRM_Core_BAO_CustomValueTable::postProcess( $form->_params, - CRM_Core_DAO::$_nullArray, 'civicrm_membership', $createdMembership->id, 'Membership'