2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

01_FHEMWEB.pm: put own module attributes to the top of the list (Forum #124538)

git-svn-id: https://svn.fhem.de/fhem/trunk@25309 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-12-06 18:54:51 +00:00
parent 8b634a6c12
commit 738018d9fd
2 changed files with 3 additions and 2 deletions

View File

@ -2304,6 +2304,7 @@ FW_select($$$$$@)
next if($processed{$v}); next if($processed{$v});
if($typeHash) { if($typeHash) {
my $newType = $typeHash->{$v}; my $newType = $typeHash->{$v};
$newType =~ s/^#//; #124538, see also getAllAttr
if($newType ne $oldType) { if($newType ne $oldType) {
$s .= "</optgroup>" if($oldType); $s .= "</optgroup>" if($oldType);
$s .= "<optgroup label='$newType'>" if($newType); $s .= "<optgroup label='$newType'>" if($newType);

View File

@ -2806,9 +2806,9 @@ getAllAttr($;$$)
&$add($AttrList, "framework"); &$add($AttrList, "framework");
if($defs{$d}{".AttrList"}) { if($defs{$d}{".AttrList"}) {
&$add($defs{$d}{".AttrList"}, $defs{$d}{TYPE}); &$add($defs{$d}{".AttrList"}, "#".$defs{$d}{TYPE}); #124538
} else { } else {
&$add($modules{$defs{$d}{TYPE}}{AttrList}, $defs{$d}{TYPE}); &$add($modules{$defs{$d}{TYPE}}{AttrList}, "#".$defs{$d}{TYPE});
} }
my $nl2space = sub($$) my $nl2space = sub($$)