Skip to content
Snippets Groups Projects
Commit 7d1e6295 authored by yashodha's avatar yashodha Committed by eileen
Browse files

(#1065) fix condition so that the contact field appears for...

(#1065) fix condition so that the contact field appears for standalone/tab context for create mode

fix for create grant from tab
parent 6d75546d
Branches
Tags
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment