From 1a3e22cc7de1807909cd28a0dd965014004f2bb9 Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Fri, 30 Oct 2015 15:48:05 +0100 Subject: [PATCH] Don't prefix custom fields with entity table. --- CRM/Contact/BAO/Query.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 23288b38d6..756a633c5f 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -1672,7 +1672,8 @@ class CRM_Contact_BAO_Query { if ($apiEntity && (substr($id, 0, strlen($apiEntity)) != $apiEntity) && - (substr($id, 0, 10) != 'financial_' && substr($id, 0, 8) != 'payment_') + (substr($id, 0, 10) != 'financial_' && substr($id, 0, 8) != 'payment_') && + (substr($id, 0, 7) != 'custom_') ) { $id = $apiEntity . '_' . $id; } -- 2.25.1