From 0551ab932b9cf7c49f9339267bb7baa092a8955c Mon Sep 17 00:00:00 2001 From: Damien HUTEAU Date: Fri, 25 Oct 2019 16:39:41 +0200 Subject: [PATCH] allow custom query string value when redirecting fix the code to match the doc : https://bolt.github.io/boltforms/submission.html#redirect-on-success (previously the code was looking up the query value inside form fields key) --- src/Submission/Handler/Redirect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Submission/Handler/Redirect.php b/src/Submission/Handler/Redirect.php index 1d6b117..8ebb6d0 100644 --- a/src/Submission/Handler/Redirect.php +++ b/src/Submission/Handler/Redirect.php @@ -108,7 +108,7 @@ protected function getRedirectQuery(FormConfig $formConfig, Entity $formData) } } else { foreach ($query as $id => $param) { - $queryParams[$id] = $formData->get($param); + $queryParams[$id] = $param; } } } else {