-- CRM-16197, fixed onbehalf profile code to use contact sub type
authorPradeep Nayak <pradpnayak@gmail.com>
Sun, 29 Mar 2015 20:01:59 +0000 (01:31 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Sun, 29 Mar 2015 20:01:59 +0000 (01:31 +0530)
----------------------------------------
* CRM-16197: OnBehalf profile doesn't respect contact sub type
  https://issues.civicrm.org/jira/browse/CRM-16197

CRM/Contribute/Form/Contribution/OnBehalfOf.php

index b0646cf025aff6b7845fe61a846f95012d650721..f9c52367c41c5ebe12fcb3f3ae07c2f59621086d 100644 (file)
@@ -171,7 +171,7 @@ class CRM_Contribute_Form_Contribution_OnBehalfOf {
           $field['is_required'] = 1;
         }
 
-        CRM_Core_BAO_UFGroup::buildProfile($form, $field, NULL, NULL, FALSE, TRUE);
+        CRM_Core_BAO_UFGroup::buildProfile($form, $field, NULL, NULL, FALSE, 'onbehalf');
       }
     }