X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FCustomValue.php;h=6c7565234f820db7a5b9a0a5ebad90d2218b217a;hb=d01c267bb7980687710ac01f4f0c5686df5beb15;hp=2deb17d7b15975b7a16cbaa80ed15e25eda01b67;hpb=eb13603069edaafc80571879417d376f81f84c5a;p=civicrm-core.git diff --git a/api/v3/CustomValue.php b/api/v3/CustomValue.php index 2deb17d7b1..6c7565234f 100644 --- a/api/v3/CustomValue.php +++ b/api/v3/CustomValue.php @@ -210,7 +210,7 @@ function civicrm_api3_custom_value_get($params) { } $values[$id]['entity_id'] = $getParams['entityID']; if (!empty($getParams['entityType'])) { - $values[$n]['entity_table'] = $getParams['entityType']; + $values[$id]['entity_table'] = $getParams['entityType']; } //set 'latest' -useful for multi fields but set for single for consistency $values[$id]['latest'] = $value;