X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FForm%2FProfileContact.php;h=b6f12cbf5703130978171c2a2fb2859c98d964da;hb=30c0347c1a0b2a22d70c9d9d36b1fd4b61f6178f;hp=8c865da1770960053a20d2945f9e98a022adf642;hpb=6643a63b47c9607cdc5f14a739cf7c7cfe55d726;p=civicrm-core.git diff --git a/CRM/Contact/Form/ProfileContact.php b/CRM/Contact/Form/ProfileContact.php index 8c865da177..b6f12cbf57 100644 --- a/CRM/Contact/Form/ProfileContact.php +++ b/CRM/Contact/Form/ProfileContact.php @@ -39,6 +39,8 @@ class CRM_Contact_Form_ProfileContact { /** * Function to set variables up before form is built * + * @param $form + * * @return void * @access public */ @@ -76,8 +78,9 @@ class CRM_Contact_Form_ProfileContact { * Function to build form for honoree contact / on behalf of organization. * * @param $form object invoking Object - * @param $contactType string contact type - * @param $title string fieldset title + * + * @internal param string $contactType contact type + * @internal param string $title fieldset title * * @static */ @@ -108,9 +111,12 @@ class CRM_Contact_Form_ProfileContact { } } + /** + * @param $form + */ static function postProcess($form) { $params = $form->_params; - if ($form->_honor_block_is_active && !empty($params['soft_credit_type_id'])) { + if (!empty($form->_honor_block_is_active) && !empty($params['soft_credit_type_id'])) { $honorId = null; //check if there is any duplicate contact