mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
33_readingsGroup.pm: avoid recursion in detailFn if readingGroup contains its own state
git-svn-id: https://svn.fhem.de/fhem/trunk@8009 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7d838a928c
commit
2401aeafe3
@ -867,12 +867,17 @@ sub
|
||||
readingsGroup_detailFn()
|
||||
{
|
||||
my ($FW_wname, $d, $room, $extPage) = @_; # extPage is set for summaryFn.
|
||||
|
||||
my $hash = $defs{$d};
|
||||
|
||||
return undef if( ${hash}->{inDetailFn} );
|
||||
|
||||
$hash->{mayBeVisible} = 1;
|
||||
|
||||
return readingsGroup_2html($d,$extPage);
|
||||
${hash}->{inDetailFn} = 1;
|
||||
my $html = readingsGroup_2html($d,$extPage);
|
||||
delete ${hash}->{inDetailFn};
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
sub
|
||||
|
Loading…
x
Reference in New Issue
Block a user