2
0
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:
justme-1968 2015-02-16 16:06:09 +00:00
parent 7d838a928c
commit 2401aeafe3

View File

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