[BridgeAbstract] Fix broken assignment of defaultValue

setInputs() currently looks if the global array defines a 'value'
for a given parameter, but that isn't supported by the API. It
needs to be 'defaultValue'.
This commit is contained in:
logmanoriginal 2019-11-01 15:29:16 +01:00
parent 50eee7e7b3
commit 5f64fe2516

View file

@ -165,8 +165,8 @@ abstract class BridgeAbstract implements BridgeInterface {
foreach(static::PARAMETERS['global'] as $name => $properties) { foreach(static::PARAMETERS['global'] as $name => $properties) {
if(isset($inputs[$name])) { if(isset($inputs[$name])) {
$value = $inputs[$name]; $value = $inputs[$name];
} elseif(isset($properties['value'])) { } elseif(isset($properties['defaultValue'])) {
$value = $properties['value']; $value = $properties['defaultValue'];
} else { } else {
continue; continue;
} }