CRM-18102 - Bug fix for contribution soft save in edit contribution
authorKajan <kajan@vedaconsulting.co.uk>
Wed, 24 Feb 2016 17:43:13 +0000 (17:43 +0000)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Thu, 3 Mar 2016 09:22:46 +0000 (14:52 +0530)
CRM/Contribute/Form/SoftCredit.php

index 670bbcb812457ee8a1a7fefc49ec4bd21309c76d..58bda1b0d3ebf1a094e71d67b7805dd02724964f 100644 (file)
@@ -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]);
       }
     }