Skip to content

Commit

Permalink
refs #41759, aggregate contact import error to error report of contri…
Browse files Browse the repository at this point in the history
…b when import contrib
  • Loading branch information
jimyhuang committed Oct 15, 2024
1 parent 40a0ce9 commit 3526cb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Contribute/Import/Parser/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -788,10 +788,10 @@ function import($onDuplicate, &$values) {
}
else {
$errDisp = "Contact Import Error: ".$contactValues[0];
$importRecordParams = array($statusFieldName => $contactImportResult, "${statusFieldName}Msg" => $errDisp);
$importRecordParams = array($statusFieldName => CRM_Import_Parser::ERROR, "${statusFieldName}Msg" => $errDisp);
$this->updateImportStatus($values[count($values) - 1], $importRecordParams);
array_unshift($values, $importRecordParams[$statusFieldName.'Msg']);
return $contactImportResult;
return CRM_Import_Parser::ERROR;
}
}
else {
Expand Down

0 comments on commit 3526cb7

Please sign in to comment.