From e382506a2fae3560d046c7ed7b3c0a0cce4285e8 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 13 Feb 2019 14:34:33 -0800 Subject: [PATCH] CRM_Profile_Form - Add fcs for download link on custom field --- CRM/Profile/Form.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Profile/Form.php b/CRM/Profile/Form.php index 399f189c22..330b50890a 100644 --- a/CRM/Profile/Form.php +++ b/CRM/Profile/Form.php @@ -552,8 +552,9 @@ class CRM_Profile_Form extends CRM_Core_Form { $deleteExtra = ts("Are you sure you want to delete attached file?"); $fileId = $url['file_id']; + $fileHash = CRM_Core_BAO_File::generateFileHash($entityId, $fileId); /* fieldId=$customFieldID */ $deleteURL = CRM_Utils_System::url('civicrm/file', - "reset=1&id={$fileId}&eid=$entityId&fid={$customFieldID}&action=delete" + "reset=1&id={$fileId}&eid=$entityId&fid={$customFieldID}&action=delete&fcs={$fileHash}" ); $text = ts("Delete Attached File"); $customFiles[$field['name']]['deleteURL'] = "$text"; -- 2.25.1