mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-24 18:31:23 +02:00
[core] fix two-levels list default value support
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -319,7 +319,11 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||
break;
|
||||
case 'list':
|
||||
if(!isset($properties['defaultValue'])){
|
||||
$this->inputs[$context][$name]['value']=reset($properties['values']);
|
||||
$firstItem=reset($properties['values']);
|
||||
if(is_array($firstItem)){
|
||||
$firstItem=reset($firstItem);
|
||||
}
|
||||
$this->inputs[$context][$name]['value']=$firstItem;
|
||||
}else{
|
||||
$this->inputs[$context][$name]['value']=$properties['defaultValue'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user