33_readingsGroup.pm: avoid recursion in detailFn if readingGroup contains its own state

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8009 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2015-02-16 16:06:09 +00:00
parent 6486697e30
commit 3e8a6a3c0c

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