Skip to content

Commit

Permalink
Merge pull request #23673 from seamuslee001/fix_sequential_enforcemen…
Browse files Browse the repository at this point in the history
…t_5_50

APIv3 - Fix regression in handling chained calls with `sequential`
  • Loading branch information
seamuslee001 authored Jun 2, 2022
2 parents 3a6c1de + 44be9cf commit ac8bf1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/API/Subscriber/ChainSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ protected function callNestedApi($apiKernel, &$params, &$result, $action, $entit
$enforcedSubParams['version'] = $version;
// Copy check_permissions from parent.
$enforcedSubParams['check_permissions'] = $params['check_permissions'] ?? NULL;
$enforcedSubParams['sequential'] = 1;
$defaultSubParams['sequential'] = 1;
$enforcedSubParams['api.has_parent'] = 1;
// Inspect $newparams, the passed in params for the chain call.
if (array_key_exists(0, $newparams)) {
Expand Down

0 comments on commit ac8bf1b

Please sign in to comment.