From ed906a7d168f58138af28cb4cfb7ea7730af8511 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Mon, 6 Dec 2021 18:54:51 +0000 Subject: [PATCH] 01_FHEMWEB.pm: put own module attributes to the top of the list (Forum #124538) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25309 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/01_FHEMWEB.pm | 1 + fhem.pl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/FHEM/01_FHEMWEB.pm b/FHEM/01_FHEMWEB.pm index 73a8aa283..adbe0576a 100644 --- a/FHEM/01_FHEMWEB.pm +++ b/FHEM/01_FHEMWEB.pm @@ -2304,6 +2304,7 @@ FW_select($$$$$@) next if($processed{$v}); if($typeHash) { my $newType = $typeHash->{$v}; + $newType =~ s/^#//; #124538, see also getAllAttr if($newType ne $oldType) { $s .= "" if($oldType); $s .= "" if($newType); diff --git a/fhem.pl b/fhem.pl index 89d7d1e37..941fa0320 100755 --- a/fhem.pl +++ b/fhem.pl @@ -2806,9 +2806,9 @@ getAllAttr($;$$) &$add($AttrList, "framework"); if($defs{$d}{".AttrList"}) { - &$add($defs{$d}{".AttrList"}, $defs{$d}{TYPE}); + &$add($defs{$d}{".AttrList"}, "#".$defs{$d}{TYPE}); #124538 } else { - &$add($modules{$defs{$d}{TYPE}}{AttrList}, $defs{$d}{TYPE}); + &$add($modules{$defs{$d}{TYPE}}{AttrList}, "#".$defs{$d}{TYPE}); } my $nl2space = sub($$)