From 33f604c79cd77790b1a5bae2bb9e6b25f0020c1e Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 2 Sep 2022 14:35:23 +1200 Subject: [PATCH] Remove soft credit validation It is not possible in the UI to deselect the soft-credit-field field so let's not validate --- CRM/Contribute/Import/Form/MapField.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/CRM/Contribute/Import/Form/MapField.php b/CRM/Contribute/Import/Form/MapField.php index 60499bb907..4ba33999ea 100644 --- a/CRM/Contribute/Import/Form/MapField.php +++ b/CRM/Contribute/Import/Form/MapField.php @@ -181,15 +181,6 @@ class CRM_Contribute_Import_Form_MapField extends CRM_Import_Form_MapField { if (array_key_exists($val, $ruleFields)) { $weightSum += $ruleFields[$val]; } - if ($val == "soft_credit") { - $mapperKey = CRM_Utils_Array::key('soft_credit', $importKeys); - if (empty($fields['mapper'][$mapperKey][1])) { - if (empty($errors['_qf_default'])) { - $errors['_qf_default'] = ''; - } - $errors['_qf_default'] .= ts('Missing required fields: Soft Credit') . '
'; - } - } } foreach ($ruleFields as $field => $weight) { $fieldMessage .= ' ' . $field . '(weight ' . $weight . ')'; -- 2.25.1