From bcdf966460bcc8f105fcefb282907f0a599fe5ae Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Fri, 3 Feb 2017 17:34:10 +0530 Subject: [PATCH] CRM-19964, Fixed notice errors ---------------------------------------- * CRM-19964: Event registration creates contribution without line item https://issues.civicrm.org/jira/browse/CRM-19964 --- CRM/Event/Form/Registration/Confirm.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Event/Form/Registration/Confirm.php b/CRM/Event/Form/Registration/Confirm.php index f0f653cced..155f8e6c13 100644 --- a/CRM/Event/Form/Registration/Confirm.php +++ b/CRM/Event/Form/Registration/Confirm.php @@ -639,9 +639,9 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { !$this->_allowWaitlist && !$this->_requireApproval ) { // transactionID & receive date required while building email template - $this->assign('trxn_id', $value['trxn_id']); - $this->assign('receive_date', CRM_Utils_Date::mysqlToIso($value['receive_date'])); - $this->set('receiveDate', CRM_Utils_Date::mysqlToIso($value['receive_date'])); + $this->assign('trxn_id', CRM_Utils_Array::value('trxn_id', $value)); + $this->assign('receive_date', CRM_Utils_Date::mysqlToIso(CRM_Utils_Array::value('receive_date', $value))); + $this->set('receiveDate', CRM_Utils_Date::mysqlToIso(CRM_Utils_Array::value('receive_date', $value))); $this->set('trxnId', CRM_Utils_Array::value('trxn_id', $value)); } } -- 2.25.1