2
0
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:
rudolfkoenig 2020-07-26 17:17:03 +00:00
parent 4f1f58ecc5
commit ae9adf9420

View File

@ -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;
}