From b6bde0d8f83b4232dcd748c693214ffe06d14207 Mon Sep 17 00:00:00 2001 From: Krzysztof Makowski Date: Fri, 28 Jul 2017 08:38:53 +0200 Subject: [PATCH] Fix Error Continue Error that i fixed in pull #967 Now we can return multiple grids on one page that need route parameters in request --- Grid/Grid.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Grid/Grid.php b/Grid/Grid.php index 23530b4c..17dab7be 100644 --- a/Grid/Grid.php +++ b/Grid/Grid.php @@ -419,7 +419,11 @@ public function handleRequest(Request $request) $this->createHash(); - $this->requestData = $request->get($this->hash); + if(!$this->request->get('_route')){ + $this->requestData = (array) $this->request->attributes->get('request')->get($this->hash); + } else { + $this->requestData = (array) $this->request->get($this->hash); + } $this->processPersistence();