From 2401aeafe372def3c36a8f50b1f4fa6c48f4f0c9 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Mon, 16 Feb 2015 16:06:09 +0000 Subject: [PATCH] 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 --- fhem/FHEM/33_readingsGroup.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm index 01a03ea01..e57f70e02 100644 --- a/fhem/FHEM/33_readingsGroup.pm +++ b/fhem/FHEM/33_readingsGroup.pm @@ -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