[core] fix global parameter values propagatino

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-28 00:00:35 +02:00
parent 701aff420d
commit ea1d53a24a

View file

@ -311,10 +311,15 @@ abstract class BridgeAbstract implements BridgeInterface {
} }
// Copy global parameter values to the guessed context // Copy global parameter values to the guessed context
foreach($param as $name=>$value){ foreach($this->parameters['global'] as $name=>$properties){
if(isset($this->parameters['global'][$name])){ if(isset($param[$name])){
$this->parameters[$queriedContext][$name]['value']=$value; $value=$param[$name];
}else if(isset($properties['value'])){
$value=$properties['value'];
}else{
continue;
} }
$this->parameters[$queriedContext][$name]['value']=$value;
} }
$this->collectData(); $this->collectData();