From d397cef8bf8734eb1a86229abb062cd852d1f0ed Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Thu, 20 Aug 2020 22:42:13 +0100 Subject: [PATCH] Allow setting the participant status in Order.create api (required by event cart) --- api/v3/Order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/Order.php b/api/v3/Order.php index a94ff1665302..4014f9029ebe 100644 --- a/api/v3/Order.php +++ b/api/v3/Order.php @@ -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':