ソースを参照

dateTime Range

Vincent GUFFON 4 年 前
コミット
682fad5c6a
1 ファイル変更3 行追加0 行削除
  1. 3 0
      src/Entity/Access/Access.php

+ 3 - 0
src/Entity/Access/Access.php

@@ -290,6 +290,9 @@ class Access implements UserInterface
 
     public function setHistorical(array $historical): self
     {
+        if(!$historical['past'] && !$historical['present'] && !$historical['future'])
+            $historical['present'] = true;
+
         $this->setting['historical'] = $historical;
         return $this;
     }