GitLab issue 652 Copying activity file custom data doesn't copy mime type
authorChamil Wijesooriya <chamil@millertech.co.uk>
Wed, 9 Jan 2019 09:39:27 +0000 (09:39 +0000)
committerChamil Wijesooriya <chamil@millertech.co.uk>
Wed, 9 Jan 2019 09:39:27 +0000 (09:39 +0000)
CRM/Activity/BAO/Activity.php

index d24c024803af9d8cba6ce564ab29a12c1e3385a6..6f381ff50792ea667ad805aa31388558632e1282 100644 (file)
@@ -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 {