From: yashodha Date: Thu, 5 Sep 2019 13:11:22 +0000 (+0530) Subject: (dev/core#1065) fix condition so that the contact field appears for standalone/tab... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7d1e62951150da184c965c6462625148e3b698d3;p=civicrm-core.git (dev/core#1065) fix condition so that the contact field appears for standalone/tab context for create mode fix for create grant from tab --- diff --git a/CRM/Grant/Form/Grant.php b/CRM/Grant/Form/Grant.php index d03961fb02..de05a0c7cb 100644 --- a/CRM/Grant/Form/Grant.php +++ b/CRM/Grant/Form/Grant.php @@ -142,6 +142,11 @@ class CRM_Grant_Form_Grant extends CRM_Core_Form { $defaults['amount_granted'] = CRM_Utils_Money::format($defaults['amount_granted'], NULL, '%a'); } } + else { + if ($this->_contactID) { + $defaults['contact_id'] = $this->_contactID; + } + } return $defaults; }