From: Francis Whittle Date: Wed, 16 Sep 2015 07:18:06 +0000 (+1000) Subject: CRM-17055: Confirmation email on unpaid events produces syntax error with invoicing X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ce933183f65d14ca73f679502567da1b9b28f5c7;p=civicrm-core.git CRM-17055: Confirmation email on unpaid events produces syntax error with invoicing ---------------------------------------- * CRM-17055: Confirmation email on unpaid events produces syntax error with invoicing https://issues.civicrm.org/jira/browse/CRM-17055 --- diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index 0753ac8397..946b51a734 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -1243,7 +1243,7 @@ WHERE civicrm_event.is_active = 1 $taxAmt = $template->get_template_vars('totalTaxAmount'); $prefixValue = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME, 'contribution_invoice_settings'); $invoicing = CRM_Utils_Array::value('invoicing', $prefixValue); - if (isset($invoicing) && isset($prefixValue['is_email_pdf'])) { + if (isset($invoicing) && isset($prefixValue['is_email_pdf']) && !empty($values['contributionId'])) { $sendTemplateParams['isEmailPdf'] = TRUE; $sendTemplateParams['contributionId'] = $values['contributionId']; }