From ea1d53a24a269584ee345ee5dd3aaa58032cc2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sun, 28 Aug 2016 00:00:35 +0200 Subject: [PATCH] [core] fix global parameter values propagatino MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- lib/Bridge.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/Bridge.php b/lib/Bridge.php index 2c23cdf3..111d9713 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -311,10 +311,15 @@ abstract class BridgeAbstract implements BridgeInterface { } // Copy global parameter values to the guessed context - foreach($param as $name=>$value){ - if(isset($this->parameters['global'][$name])){ - $this->parameters[$queriedContext][$name]['value']=$value; + foreach($this->parameters['global'] as $name=>$properties){ + if(isset($param[$name])){ + $value=$param[$name]; + }else if(isset($properties['value'])){ + $value=$properties['value']; + }else{ + continue; } + $this->parameters[$queriedContext][$name]['value']=$value; } $this->collectData();