From: Tim Otten Date: Wed, 13 Feb 2019 22:34:33 +0000 (-0800) Subject: CRM_Profile_Form - Add fcs for download link on custom field X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e382506a2fae3560d046c7ed7b3c0a0cce4285e8;p=civicrm-core.git CRM_Profile_Form - Add fcs for download link on custom field --- 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";