From ec03b7b2f85cbe89082eda9fe7e457534bdc522d Mon Sep 17 00:00:00 2001 From: Breno Douglas Araujo Souza Date: Wed, 17 Feb 2016 12:51:49 -0200 Subject: [PATCH] Access paramater in onStart method in the partial Variables passed in parameter partils not accessed in onStart method in the partial. With merged vars before render partial, stays like this:: ```php function onStart() { $this['param']; } ``` --- modules/cms/classes/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cms/classes/Controller.php b/modules/cms/classes/Controller.php index 056549cff..1d61ccfad 100644 --- a/modules/cms/classes/Controller.php +++ b/modules/cms/classes/Controller.php @@ -753,7 +753,7 @@ class Controller public function renderPartial($name, $parameters = [], $throwException = true) { $vars = $this->vars; - + $this->vars = array_merge($this->vars, $parameters); /* * Alias @ symbol for :: */