CRM-19955 file display in contact record
authorBrian Shaughnessy <brian@lcdservices.biz>
Wed, 1 Feb 2017 02:06:21 +0000 (21:06 -0500)
committerBrian Shaughnessy <brian@lcdservices.biz>
Wed, 1 Feb 2017 02:06:21 +0000 (21:06 -0500)
CRM/Core/BAO/CustomField.php

index 1aff500d455536fccbca7923c93b638c6847072b..82bfee3e06f85f7b84da22756e56324374af02d2 100644 (file)
@@ -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',