Skip to content

Commit e94eaa8

Browse files
committed
Clarify that entity_table is always civicrm_participant
1 parent 97af65d commit e94eaa8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CRM/Event/Form/Registration/Confirm.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,6 @@ public function postProcess() {
662662
$allParticipantIds = array_merge([$registerByID], $this->_additionalParticipantIds);
663663
}
664664

665-
$entityTable = 'civicrm_participant';
666665
$totalTaxAmount = 0;
667666
foreach ($this->_lineItem as $key => $value) {
668667
if ($value == 'skip') {
@@ -671,10 +670,10 @@ public function postProcess() {
671670
if ($entityId = $allParticipantIds[$key] ?? NULL) {
672671
// do cleanup line items if participant re-walking wizard.
673672
if ($this->_allowConfirmation) {
674-
CRM_Price_BAO_LineItem::deleteLineItems($entityId, $entityTable);
673+
CRM_Price_BAO_LineItem::deleteLineItems($entityId, 'civicrm_participant');
675674
}
676675
$lineItem[$this->_priceSetId] = $value;
677-
CRM_Price_BAO_LineItem::processPriceSet($entityId, $lineItem, $contribution, $entityTable);
676+
CRM_Price_BAO_LineItem::processPriceSet($entityId, $lineItem, $contribution, 'civicrm_participant');
678677
}
679678
if (\Civi::settings()->get('invoicing')) {
680679
foreach ($value as $line) {

0 commit comments

Comments
 (0)