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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user