From c55199e10282f37422065322b345b9eaf0e55140 Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Tue, 31 Jan 2017 21:06:21 -0500 Subject: [PATCH] CRM-19955 file display in contact record --- CRM/Core/BAO/CustomField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/CustomField.php b/CRM/Core/BAO/CustomField.php index 1aff500d45..82bfee3e06 100644 --- a/CRM/Core/BAO/CustomField.php +++ b/CRM/Core/BAO/CustomField.php @@ -1443,7 +1443,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { $entityId = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_EntityFile', $fileID, 'entity_id', - 'id' + 'file_id' ); list($path) = CRM_Core_BAO_File::path($fileID, $entityId, NULL, NULL); $url = CRM_Utils_System::url('civicrm/file', -- 2.25.1