projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d75546
)
(dev/core#1065) fix condition so that the contact field appears for standalone/tab...
author
yashodha
<yashodha@cividesk.com>
Thu, 5 Sep 2019 13:11:22 +0000
(18:41 +0530)
committer
eileen
<emcnaughton@wikimedia.org>
Sat, 7 Sep 2019 00:45:10 +0000
(12:45 +1200)
fix for create grant from tab
CRM/Grant/Form/Grant.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Grant/Form/Grant.php
b/CRM/Grant/Form/Grant.php
index d03961fb02e19443f53861247a08c3bac066aef2..de05a0c7cb8d8da08e5c9aa4fdd33c2666a12a20 100644
(file)
--- 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;
}