X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FParticipant.php;h=edbfd0da5413b8114ce82687231222b78196e6b4;hb=52f3b44beeb514000c2a0b6013802a901b1f0c56;hp=1c0f840f11f5691754227d71ee0c6e6cc417f1ed;hpb=9cb66215e62f814a4c88c9a8015a36c5951f8e7f;p=civicrm-core.git diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 1c0f840f11..edbfd0da54 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1668,7 +1668,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment 'groupName' => 'msg_tpl_workflow_event', 'valueName' => 'event_offline_receipt', 'contactId' => $contactID, - 'isTest' => (bool) CRM_Utils_Array::value('is_test', $this->_defaultValues), + 'isTest' => !empty($this->_defaultValues['is_test']), 'PDFFilename' => ts('confirmation') . '.pdf', );