diff --git a/fhem/CHANGED b/fhem/CHANGED index 80bf8b6cb..e26308655 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - change: 93_DbRep: running though tableCurrentFillup if database is closed - new: 70_BOTVAC: initial release - feature: 73_AutoShuttersControl: change blocking handle, add privacy drive - bugfix: 49_SSCam: refresh snapgallery device if snap was done by itself diff --git a/fhem/FHEM/93_DbRep.pm b/fhem/FHEM/93_DbRep.pm index 0da0127f5..3c4005a61 100644 --- a/fhem/FHEM/93_DbRep.pm +++ b/fhem/FHEM/93_DbRep.pm @@ -57,6 +57,7 @@ no if $] >= 5.017011, warnings => 'experimental::smartmatch'; # Versions History intern our %DbRep_vNotesIntern = ( + "8.11.2" => "03.02.2019 fix no running tableCurrentFillup if database is closed ", "8.11.1" => "25.01.2019 fix sort of versionNotes ", "8.11.0" => "24.01.2019 command exportToFile or attribute \"expimpfile\" accepts option \"MAXLINES=\" ", "8.10.1" => "23.01.2019 change DbRep_charfilter to eliminate \xc2", @@ -628,7 +629,13 @@ sub DbRep_Set($@) { Log3 ($name, 3, "DbRep $name -> running Restore has been canceled"); ReadingsSingleUpdateValue ($hash, "state", "Restore canceled", 1); return undef; - } + } + + if ($opt =~ m/tableCurrentFillup/ && $hash->{ROLE} ne "Agent") { + $hash->{LASTCMD} = $prop?"$opt $prop":"$opt"; + DbRep_Main($hash,$opt); + return undef; + } ####################################################################################################### ## keine Aktionen außer die über diesem Eintrag solange Reopen xxxx im DbLog-Device läuft @@ -673,10 +680,6 @@ sub DbRep_Set($@) { DbRep_beforeproc($hash, "delEntries"); DbRep_Main($hash,$opt); - } elsif ($opt =~ m/tableCurrentFillup/ && $hash->{ROLE} ne "Agent") { - $hash->{LASTCMD} = $prop?"$opt $prop":"$opt"; - DbRep_Main($hash,$opt); - } elsif ($opt eq "deviceRename") { shift @a; shift @a;