minor fix
authormonishdeb <monish.deb@webaccessglobal.com>
Fri, 11 Jul 2014 20:55:10 +0000 (02:25 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Fri, 11 Jul 2014 20:55:10 +0000 (02:25 +0530)
api/v3/Generic/Setvalue.php

index 7fd4e4035580782084c231d0a41a8c47492e2f17..f471dd2dd6a1dc1c47f21f883c3a46feb92ade07 100644 (file)
@@ -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 {