mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
structure: recursive FILTER patch (Forum #26025)
git-svn-id: https://svn.fhem.de/fhem/trunk@6401 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cce32d09c7
commit
c5110ca5d9
@ -356,8 +356,12 @@ structure_Set($@)
|
||||
$list[0] = $d;
|
||||
my $sret;
|
||||
if($filter) {
|
||||
my $ret = AnalyzeCommand(undef,
|
||||
"set $list[0]:$filter ". join(" ", @list[1..@list-1]) );
|
||||
my $ret;
|
||||
if(defined($defs{$list[0]}) && $defs{$list[0]}{TYPE} eq "structure") {
|
||||
AnalyzeCommand(undef, "set $list[0] [$filter] ". join(" ", @list[1..@list-1]) );
|
||||
} else {
|
||||
AnalyzeCommand(undef, "set $list[0]:$filter ". join(" ", @list[1..@list-1]) );
|
||||
}
|
||||
$sret .= $ret if( $ret );
|
||||
} else {
|
||||
$sret .= CommandSet(undef, join(" ", @list));
|
||||
|
Loading…
Reference in New Issue
Block a user