[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:
parent
50eee7e7b3
commit
5f64fe2516
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue