Skip to content

Commit

Permalink
CRM-19804, added pre and post hook invokation for FinancialAccount
Browse files Browse the repository at this point in the history
----------------------------------------
* CRM-19804: Pre() and Post() hook for Financial Account
  https://issues.civicrm.org/jira/browse/CRM-19804
  • Loading branch information
pradpnayak committed Dec 28, 2016
1 parent 67cb5b1 commit da0cd0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Financial/BAO/FinancialAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public static function add(&$params) {
$op = 'edit';
}
CRM_Utils_Hook::pre($op, 'FinancialAccount', CRM_Utils_Array::value('id', $params), $params);

if (!empty($params['id'])) {
$financialAccount->id = $params['id'];
$financialAccount->find(TRUE);
Expand Down

0 comments on commit da0cd0a

Please sign in to comment.