Skip to content

Commit

Permalink
refs #42288, fixes participant save priceset php 8 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimyhuang committed Jan 14, 2025
1 parent 474f04b commit 3a0fa0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Event/Form/Participant.php
Original file line number Diff line number Diff line change
Expand Up @@ -1460,8 +1460,8 @@ public function postProcess() {
}

// also store lineitem stuff here
if (($this->_lineItem & $this->_action & CRM_Core_Action::ADD) ||
($this->_lineItem && CRM_Core_Action::UPDATE && !$this->_paymentId)
if ((!empty($this->_lineItem) && ($this->_action & CRM_Core_Action::ADD)) ||
(!empty($this->_lineItem) && ($this->_action & CRM_Core_Action::UPDATE) && !$this->_paymentId)
) {
require_once 'CRM/Price/BAO/LineItem.php';
foreach ($this->_contactIds as $num => $contactID) {
Expand Down

0 comments on commit 3a0fa0e

Please sign in to comment.