diff --git a/lib/Bridge.php b/lib/Bridge.php index cab2701..fc09b63 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -317,6 +317,18 @@ abstract class BridgeAbstract implements BridgeInterface { $this->inputs[$context][$name]['value']=$properties['defaultValue']; } break; + case 'list': + if(!isset($properties['defaultValue'])){ + $this->inputs[$context][$name]['value']=reset($properties['values']); + }else{ + $this->inputs[$context][$name]['value']=$properties['defaultValue']; + } + break; + default: + if(isset($properties['defaultValue'])){ + $this->inputs[$context][$name]['value']=$properties['defaultValue']; + } + break; } } }