From 378d5c0bfff1e7ddd2420b6548c85830dc6e0517 Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 17 Jan 2023 11:45:19 +0530 Subject: [PATCH] (dev/core#4084) Assign participant_status_id in both edit/create modes --- 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 7fe919029e2a..335d1088415a 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -516,7 +516,6 @@ public function setDefaultValues() { $this->assign('participant_is_pay_later', TRUE); } - $this->assign('participant_status_id', $defaults[$this->_id]['participant_status_id']); $eventID = $defaults[$this->_id]['event_id']; $this->_eventTypeId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $eventID, 'event_type_id', 'id'); @@ -1025,6 +1024,7 @@ public function submit($params) { $this->_params['participant_status_id'] = $params['status_id']; $this->_params['participant_role_id'] = is_array($params['role_id']) ? $params['role_id'] : explode(',', $params['role_id']); $roleIdWithSeparator = implode(CRM_Core_DAO::VALUE_SEPARATOR, $this->_params['participant_role_id']); + $this->assign('participant_status_id', $params['status_id']); $now = date('YmdHis');