2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

98_DOIF.pm: fixed: no automatic update of the displayed value if collect was specified as an array

git-svn-id: https://svn.fhem.de/fhem/trunk@25756 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Damian 2022-02-28 08:27:14 +00:00
parent 6e34c538ad
commit 2befeb672f

View File

@ -1841,7 +1841,7 @@ sub setDOIF_Reading
sub ReplaceAllReadingsDoIf
{
my ($hash,$tailBlock,$condition,$eval,$id)= @_;
my ($hash,$tailBlock,$condition,$eval,$id,$event)= @_;
my $block="";
my $beginning;
my $err;
@ -1850,11 +1850,12 @@ sub ReplaceAllReadingsDoIf
my $device="";
my $nr;
my $timer="";
my $event=0;
my $definition=$tailBlock;
my $reading;
my $internal;
my $trigger=1;
$event=0 if (!defined ($event));
if (!defined $tailBlock) {
return ("","");
}
@ -1962,7 +1963,7 @@ sub ReplaceAllReadingsDoIf
}
}
} else {
($block,$err)=ReplaceAllReadingsDoIf($hash,$block,$condition,$eval,$id);
($block,$err,$event)=ReplaceAllReadingsDoIf($hash,$block,$condition,$eval,$id,$event);
return ($block,$err) if ($err);
$block="[".$block."]";
}