From ba475058da3c36eb1fec97ee6c8fd81ebced06be Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 12 Jan 2016 14:38:23 +0530 Subject: [PATCH] participant an grant fix --- CRM/Event/Form/Participant.php | 2 +- CRM/Grant/Form/GrantView.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index edbfd0da54..e97300556c 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1597,7 +1597,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment foreach ($params['custom'] as $fieldID => $values) { foreach ($values as $fieldValue) { $customFields[$fieldID]['id'] = $fieldID; - $formattedValue = CRM_Core_BAO_CustomField::displayValue($fieldValue['value'], $fieldID); + $formattedValue = CRM_Core_BAO_CustomField::displayValue($fieldValue['value'], $fieldID, $participants[0]->id); $customGroup[$customFields[$fieldID]['groupTitle']][$customFields[$fieldID]['label']] = str_replace(' ', '', $formattedValue); } } diff --git a/CRM/Grant/Form/GrantView.php b/CRM/Grant/Form/GrantView.php index 420b923fd5..3c1b63dadd 100644 --- a/CRM/Grant/Form/GrantView.php +++ b/CRM/Grant/Form/GrantView.php @@ -118,7 +118,7 @@ class CRM_Grant_Form_GrantView extends CRM_Core_Form { $grantType = CRM_Core_DAO::getFieldValue("CRM_Grant_DAO_Grant", $this->_id, "grant_type_id"); $groupTree = &CRM_Core_BAO_CustomGroup::getTree("Grant", $this, $this->_id, 0, $grantType); - CRM_Core_BAO_CustomGroup::buildCustomDataView($this, $groupTree); + CRM_Core_BAO_CustomGroup::buildCustomDataView($this, $groupTree, FALSE, NULL, NULL, NULL, $this->_id); $this->assign('id', $this->_id); -- 2.25.1