Skip to content

Commit

Permalink
Merge pull request #25366 from yashodha/dev-4084
Browse files Browse the repository at this point in the history
(dev/core#4084) Assign participant_status_id in both edit/create modes
  • Loading branch information
eileenmcnaughton authored Jan 18, 2023
2 parents a8661ef + 378d5c0 commit 79ac44c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Event/Form/Participant.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit 79ac44c

Please sign in to comment.