From 5bf99dd10d75f96875d3c4511ad80a138b95bccd Mon Sep 17 00:00:00 2001 From: Joe Murray <joe.murray@jmaconsulting.biz> Date: Wed, 15 May 2013 10:50:54 -0400 Subject: [PATCH] fix arg passed to hook ---------------------------------------- * CRM-12603: grant pre hook invoked with wrong arg http://issues.civicrm.org/jira/browse/CRM-12603 --- CRM/Grant/BAO/Grant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Grant/BAO/Grant.php b/CRM/Grant/BAO/Grant.php index b9fcdca55c..9bf6b0fd34 100644 --- a/CRM/Grant/BAO/Grant.php +++ b/CRM/Grant/BAO/Grant.php @@ -188,7 +188,7 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant { } } $grant = new CRM_Grant_DAO_Grant(); - $grant->id = CRM_Utils_Array::value('grant', $ids); + $grant->id = CRM_Utils_Array::value('grant_id', $ids); $grant->copyValues($params); -- GitLab