mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
fhem.pl: fix json2namevalue mapping (Forum #112737)
git-svn-id: https://svn.fhem.de/fhem/trunk@22475 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4f1f58ecc5
commit
ae9adf9420
@ -5281,11 +5281,12 @@ json2nameValue($;$$$)
|
||||
my %ret2;
|
||||
for my $name (keys %ret) {
|
||||
next if($filter && $name !~ m/$filter/);
|
||||
my $oname = $name;
|
||||
if(defined($map->{$name})) {
|
||||
next if(!$map->{$name});
|
||||
$name = $map->{$name};
|
||||
}
|
||||
$ret2{$name} = $ret{$name};
|
||||
$ret2{$name} = $ret{$oname};
|
||||
}
|
||||
return \%ret2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user