participant an grant fix
authormonishdeb <monish.deb@webaccessglobal.com>
Tue, 12 Jan 2016 09:08:23 +0000 (14:38 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Tue, 12 Jan 2016 09:08:23 +0000 (14:38 +0530)
CRM/Event/Form/Participant.php
CRM/Grant/Form/GrantView.php

index edbfd0da5413b8114ce82687231222b78196e6b4..e97300556c0d69fb6a2073be6e7f7aae99b02f1f 100644 (file)
@@ -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('&nbsp;', '', $formattedValue);
         }
       }
index 420b923fd549d2f960b5d1f21e7bfc290fb0136a..3c1b63dadd6c9d5ea0a5a6ee62555183a51af3b2 100644 (file)
@@ -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);