[REF] Fix issue where forceing sequential broke webform API chained usage
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 2 Jun 2022 21:18:21 +0000 (07:18 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 2 Jun 2022 21:18:21 +0000 (07:18 +1000)
Civi/API/Subscriber/ChainSubscriber.php

index dfbfa458e84991c8ab7c7051ae0df2ef17d1edea..7be1bfb913c1e200e4a8df8f2398304c6b991238 100644 (file)
@@ -182,7 +182,7 @@ class ChainSubscriber implements EventSubscriberInterface {
           $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)) {