From bb0c64a4e544f1d64e136c837a81d3af5faa28ed Mon Sep 17 00:00:00 2001 From: monishdeb Date: Sat, 12 Jul 2014 02:25:10 +0530 Subject: [PATCH] minor fix --- api/v3/Generic/Setvalue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/Generic/Setvalue.php b/api/v3/Generic/Setvalue.php index 7fd4e40355..f471dd2dd6 100644 --- a/api/v3/Generic/Setvalue.php +++ b/api/v3/Generic/Setvalue.php @@ -68,7 +68,7 @@ function civicrm_api3_generic_setValue($apiRequest) { $params = array('id' => $id, $field => $value); $entityDAO = new $dao_name(); $entityDAO->copyValues($params); - CRM_Utils_Hook::post('edit', $entity, $id, $entityDAO); + CRM_Utils_Hook::post('edit', $entity, $entityDAO->id, $entityDAO); return civicrm_api3_create_success($entity); } else { -- 2.25.1