Skip to content

Commit

Permalink
dev/core#3828 Fix required fields check to account 0
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Aug 30, 2022
1 parent 18341e6 commit 71c3272
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 71c3272

Please sign in to comment.