X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FParticipantView.php;h=6d205cc9bd42e8eea94792a609f09224871d0034;hb=2e89bdd3cc217f4cb52bb0abb1bb7aa6b6c617f2;hp=57e4af7ecd91bf902826cd06dcc895ddc8cac5e6;hpb=02952b222b1543ed8e1b5d6b11c0f9d3aab0612b;p=civicrm-core.git diff --git a/CRM/Event/Form/ParticipantView.php b/CRM/Event/Form/ParticipantView.php index 57e4af7ecd..6d205cc9bd 100644 --- a/CRM/Event/Form/ParticipantView.php +++ b/CRM/Event/Form/ParticipantView.php @@ -192,8 +192,6 @@ class CRM_Event_Form_ParticipantView extends CRM_Core_Form { $displayName = CRM_Contact_BAO_Contact::displayName($values[$participantID]['contact_id']); $participantCount = []; - $invoiceSettings = Civi::settings()->get('contribution_invoice_settings'); - $invoicing = $invoiceSettings['invoicing'] ?? NULL; $totalTaxAmount = 0; foreach ($lineItem as $k => $v) { if (CRM_Utils_Array::value('participant_count', $lineItem[$k]) > 0) { @@ -201,7 +199,7 @@ class CRM_Event_Form_ParticipantView extends CRM_Core_Form { } $totalTaxAmount = $v['tax_amount'] + $totalTaxAmount; } - if ($invoicing) { + if (Civi::settings()->get('invoicing')) { $this->assign('totalTaxAmount', $totalTaxAmount); } if ($participantCount) { @@ -209,7 +207,7 @@ class CRM_Event_Form_ParticipantView extends CRM_Core_Form { } $this->assign('displayName', $displayName); // omitting contactImage from title for now since the summary overlay css doesn't work outside of our crm-container - CRM_Utils_System::setTitle(ts('View Event Registration for') . ' ' . $displayName); + $this->setTitle(ts('View Event Registration for') . ' ' . $displayName); $roleId = $values[$participantID]['role_id'] ?? NULL; $title = $displayName . ' (' . CRM_Utils_Array::value($roleId, $participantRoles) . ' - ' . $eventTitle . ')';