From 81d1e7fe2fd0ca6547e3cd80e3ac43a59657a505 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 3 Jul 2022 12:53:56 +1200 Subject: [PATCH] Import fix - if there are no required fields validateRequiredFields should 'pass' --- CRM/Import/Parser.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Import/Parser.php b/CRM/Import/Parser.php index 91f20a3fb7..002aa473b0 100644 --- a/CRM/Import/Parser.php +++ b/CRM/Import/Parser.php @@ -1277,6 +1277,9 @@ abstract class CRM_Import_Parser implements UserJobInterface { * @throws \CRM_Core_Exception Exception thrown if field requirements are not met. */ protected function validateRequiredFields(array $requiredFields, array $params, $prefixString = ''): void { + if (empty($requiredFields)) { + return; + } $missingFields = []; foreach ($requiredFields as $key => $required) { if (!is_array($required)) { -- 2.25.1