From ffc28441394a962edb0ae7ed2455d8b617b41d3e Mon Sep 17 00:00:00 2001 From: Edsel Date: Fri, 4 Mar 2016 16:49:28 +0530 Subject: [PATCH] CRM-18152 Added extra condition to retrieve uf_group_id for module ---------------------------------------- * CRM-18152: On Behalf profile does not select org profile by default if contribution profiles are added prior to it https://issues.civicrm.org/jira/browse/CRM-18152 --- CRM/Core/BAO/UFJoin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Core/BAO/UFJoin.php b/CRM/Core/BAO/UFJoin.php index 92bd4cf9cd..877db2524b 100644 --- a/CRM/Core/BAO/UFJoin.php +++ b/CRM/Core/BAO/UFJoin.php @@ -141,6 +141,7 @@ class CRM_Core_BAO_UFJoin extends CRM_Core_DAO_UFJoin { $dao->entity_table = CRM_Utils_Array::value('entity_table', $params); $dao->entity_id = CRM_Utils_Array::value('entity_id', $params); $dao->weight = CRM_Utils_Array::value('weight', $params); + $dao->module = CRM_Utils_Array::value('module', $params); if ($dao->find(TRUE)) { return $dao->uf_group_id; } -- 2.25.1