From ae9adf94200befa19aa7d8ae7d6d8c51ee332943 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 26 Jul 2020 17:17:03 +0000 Subject: [PATCH] fhem.pl: fix json2namevalue mapping (Forum #112737) git-svn-id: https://svn.fhem.de/fhem/trunk@22475 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index b81056d44..7fcbbb2eb 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -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; }