From 15f068d1b617dc7f0a8a85c52994ff0336e395bf Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 26 Feb 2014 16:27:55 +1300 Subject: [PATCH] E-notice fix to last commit --- CRM/Event/Form/Participant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 84952ad38a..f5cb0e885a 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -653,7 +653,7 @@ SELECT civicrm_custom_group.name as name, } $defaults[$this->_id]['event_id'] = $eventID; } - if ($eventID) { + if (!empty($eventID)) { $this->_eventTypeId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $eventID, 'event_type_id', 'id'); } //these should take precedence so we state them last -- 2.25.1