Skip to content

Commit

Permalink
Merge pull request #23421 from eileenmcnaughton/import_obs
Browse files Browse the repository at this point in the history
[Import] Stop passing unused parameter
  • Loading branch information
demeritcowboy authored May 11, 2022
2 parents 81d84b2 + bd0e704 commit cc2db5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CRM/Contact/Import/Form/MapField.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ public function submit($params) {
$parser->setUserJobID($this->getUserJobID());

$parser->run(
$mapper,
[],
CRM_Import_Parser::MODE_PREVIEW
);
return $parser;
Expand Down
3 changes: 1 addition & 2 deletions CRM/Contact/Import/ImportJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ public function runImport(&$form, $timeout = 55) {
}
}
}
$mapperFields[] = implode(' - ', $header);
}

$this->_parser = new CRM_Contact_Import_Parser_Contact(
Expand All @@ -169,7 +168,7 @@ public function runImport(&$form, $timeout = 55) {
);
$this->_parser->setUserJobID($this->_userJobID);
$this->_parser->run(
$mapperFields,
[],
CRM_Import_Parser::MODE_IMPORT,
$this->_statusID,
$this->_totalRowCount
Expand Down

0 comments on commit cc2db5b

Please sign in to comment.