Skip to content

Commit

Permalink
Allow setting the participant status in Order.create api (required by…
Browse files Browse the repository at this point in the history
… event cart)
  • Loading branch information
mattwire committed Aug 20, 2020
1 parent 479f2ff commit d397cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v3/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function civicrm_api3_order_create($params) {
if ($entityParams) {
switch ($entity) {
case 'participant':
$entityParams['status_id'] = 'Pending from incomplete transaction';
$entityParams['status_id'] = $entityParams['participant_status_id'] ?? 'Pending from incomplete transaction';
break;

case 'membership':
Expand Down

0 comments on commit d397cef

Please sign in to comment.