Skip to content

Commit

Permalink
Merge pull request #27298 from eileenmcnaughton/82_import
Browse files Browse the repository at this point in the history
Remove some unused undefined properties from participant export
  • Loading branch information
eileenmcnaughton authored Sep 5, 2023
2 parents e11f828 + 1597070 commit 0ad2b11
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions CRM/Event/Import/Parser/Participant.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@
class CRM_Event_Import_Parser_Participant extends CRM_Import_Parser {
protected $_mapperKeys;

/**
* Array of successfully imported participants id's
*
* @var array
*/
protected $_newParticipants;


protected $_fileName;

/**
Expand Down Expand Up @@ -147,8 +139,6 @@ public function import(array $values): void {
];
CRM_Price_BAO_LineItem::syncLineItems($newParticipant->id, 'civicrm_participant', $newParticipant->fee_amount, $otherParams);
}

$this->_newParticipant[] = $newParticipant->id;
$this->setImportStatus($rowNumber, 'IMPORTED', '', $newParticipant->id);
return;
}
Expand Down Expand Up @@ -225,10 +215,6 @@ public function import(array $values): void {
throw new CRM_Core_Exception(ts('Unknown error'));
}
}

if (!(is_array($newParticipant) && civicrm_error($newParticipant))) {
$this->_newParticipants[] = $newParticipant['id'] ?? NULL;
}
}
catch (CRM_Core_Exception $e) {
$this->setImportStatus($rowNumber, 'ERROR', $e->getMessage());
Expand All @@ -237,15 +223,6 @@ public function import(array $values): void {
$this->setImportStatus($rowNumber, 'IMPORTED', '', $newParticipant['id']);
}

/**
* Get the array of successfully imported Participation ids.
*
* @return array
*/
public function &getImportedParticipations() {
return $this->_newParticipants;
}

/**
* Format values
*
Expand Down

0 comments on commit 0ad2b11

Please sign in to comment.