From ee59be7f320cfa1079e24ed6326b3dc066440647 Mon Sep 17 00:00:00 2001 From: Chamil Wijesooriya Date: Wed, 9 Jan 2019 09:39:27 +0000 Subject: [PATCH] GitLab issue 652 Copying activity file custom data doesn't copy mime type --- CRM/Activity/BAO/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Activity/BAO/Activity.php b/CRM/Activity/BAO/Activity.php index d24c024803..6f381ff507 100644 --- a/CRM/Activity/BAO/Activity.php +++ b/CRM/Activity/BAO/Activity.php @@ -3109,7 +3109,7 @@ INNER JOIN civicrm_option_group grp ON (grp.id = option_group_id AND grp.name = $fileValues = CRM_Core_BAO_File::path($value, $params['activityID']); $customParams["custom_{$key}_-1"] = array( 'name' => $fileValues[0], - 'path' => $fileValues[1], + 'type' => $fileValues[1], ); } else { -- 2.25.1