From: Kajan Date: Wed, 24 Feb 2016 17:43:13 +0000 (+0000) Subject: CRM-18102 - Bug fix for contribution soft save in edit contribution X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0fa641097acfa9b0553fef8f24dd9e58feea7c62;p=civicrm-core.git CRM-18102 - Bug fix for contribution soft save in edit contribution --- diff --git a/CRM/Contribute/Form/SoftCredit.php b/CRM/Contribute/Form/SoftCredit.php index 670bbcb812..58bda1b0d3 100644 --- a/CRM/Contribute/Form/SoftCredit.php +++ b/CRM/Contribute/Form/SoftCredit.php @@ -55,7 +55,7 @@ class CRM_Contribute_Form_SoftCredit { //check if any honree profile is enabled if yes then assign its profile type to $_honoreeProfileType // which will be used to constraint soft-credit contact type in formRule, CRM-13981 - if ($profileId[0]) { + if ($profileId[0] && $profileId[2] == 1) { $form->_honoreeProfileType = CRM_Core_BAO_UFGroup::getContactType($profileId[0]); } }