From: Kurund Jalmi Date: Fri, 25 Aug 2023 09:22:38 +0000 (+0100) Subject: Fixes for setting defaults for custom data field of type file X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3da2a550a294a490919e7b414b1268618f850952;p=civicrm-core.git Fixes for setting defaults for custom data field of type file --- diff --git a/CRM/Core/BAO/CustomGroup.php b/CRM/Core/BAO/CustomGroup.php index 2673214a86..e7b561a07c 100644 --- a/CRM/Core/BAO/CustomGroup.php +++ b/CRM/Core/BAO/CustomGroup.php @@ -1796,7 +1796,7 @@ ORDER BY civicrm_custom_group.weight, if ($value !== NULL) { $formValues[$properties['element_name']] = $value; } - elseif (isset($submittedValues[$properties['element_name']])) { + elseif (isset($submittedValues[$properties['element_name']]) && $properties['data_type'] !== 'File') { $properties['element_value'] = $submittedValues[$properties['element_name']]; } unset($properties['customValue']);