From 4f2aa1a28fc61708a5a56689ae484e420820a86f Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Fri, 30 Oct 2015 17:10:33 +0100 Subject: [PATCH] Adds the entity_table to the correct element in the result array. --- api/v3/CustomValue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1