Skip to content

Commit

Permalink
Merge pull request #24414 from eileenmcnaughton/rc
Browse files Browse the repository at this point in the history
dev/core#3828 Fix required fields check to accept 0
  • Loading branch information
totten authored Aug 30, 2022
2 parents 18341e6 + 71c3272 commit 50cd6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Import/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ protected function validateRequiredFields(array $requiredFields, array $params,
}
else {
foreach ($required as $field => $label) {
if (empty($params[$field])) {
if (!isset($params[$field]) || $params[$field] === '') {
$missing[$field] = $label;
}
}
Expand Down

0 comments on commit 50cd6ab

Please sign in to comment.