Skip to content

Commit 3a0fa0e

Browse files
committed
refs #42288, fixes participant save priceset php 8 compatibility.
1 parent 474f04b commit 3a0fa0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CRM/Event/Form/Participant.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,8 +1460,8 @@ public function postProcess() {
14601460
}
14611461

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

0 commit comments

Comments
 (0)