We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecc6570 commit 30d6807Copy full SHA for 30d6807
src/elements/Form.php
@@ -652,7 +652,8 @@ public function getCurrentSubmission()
652
// See if there's a submission on routeParams - an error has occurred.
653
$params = Craft::$app->getUrlManager()->getRouteParams();
654
655
- if (isset($params['submission'])) {
+ // Make sure to check the right submission
656
+ if (isset($params['submission']) && $params['submission']->form->id == $this->id) {
657
return $params['submission'];
658
}
659
0 commit comments