From: Chamil Wijesooriya Date: Wed, 9 Jan 2019 09:39:27 +0000 (+0000) Subject: GitLab issue 652 Copying activity file custom data doesn't copy mime type X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ee59be7f320cfa1079e24ed6326b3dc066440647;p=civicrm-core.git GitLab issue 652 Copying activity file custom data doesn't copy mime type --- 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 {