From: monishdeb Date: Fri, 11 Jul 2014 20:55:10 +0000 (+0530) Subject: minor fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bb0c64a4e544f1d64e136c837a81d3af5faa28ed;p=civicrm-core.git minor fix --- 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 {