Skip to content
Snippets Groups Projects
Unverified Commit 7c060a91 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #15209 from yashodha/dev1065

(#1065) Grant in Edit mode doesn't show the associated contact
parents 01d61708 3266bf68
Branches
Tags
No related merge requests found
......@@ -224,8 +224,9 @@ class CRM_Grant_Form_Grant extends CRM_Core_Form {
],
]);
if ($this->_context == 'standalone') {
$this->addEntityRef('contact_id', ts('Applicant'), ['create' => TRUE], TRUE);
$contactField = $this->addEntityRef('contact_id', ts('Applicant'), ['create' => TRUE], TRUE);
if ($this->_context != 'standalone') {
$contactField->freeze();
}
}
......
......@@ -35,12 +35,10 @@
{else}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
{if $context eq 'standalone'}
<tr class="crm-grant-form-block-contact_id">
<td class="label">{$form.contact_id.label}</td>
<td>{$form.contact_id.html}</td>
</tr>
{/if}
<tr class="crm-grant-form-block-status_id">
<td class="label">{$form.status_id.label}</td>
<td>{$form.status_id.html}</td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment