Remove line that gives error & does nothing
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 13 Aug 2023 00:08:35 +0000 (12:08 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 13 Aug 2023 00:08:35 +0000 (12:08 +1200)
I went back to 5.55 & did receipt testing and
1) this notice is there already back then
2) it results in a resolved value of 'Array - Display name
3) it does not appear anywhere in the final receipt

CRM/Event/Form/Participant.php

index fee7ae3faaa4da53cf27854a89626a05fc0d9ba3..4aa657e1a7666e32d0598eddc23e4b98b8109c7b 100644 (file)
@@ -2207,9 +2207,6 @@ INNER JOIN civicrm_price_field_value value ON ( value.id = lineItem.price_field_
           $this->assign('taxTerm', $this->getSalesTaxTerm());
           $this->assign('dataArray', $dataArray);
         }
-        if (!empty($additionalParticipantDetails)) {
-          $params['amount_level'] = preg_replace('/\ 1/', '', $params['amount_level']) . ' - ' . $this->_contributorDisplayName;
-        }
 
         $eventAmount[$num] = [
           'label' => preg_replace('/\ 1/', '', $params['amount_level']),