Browse Source

dateTime Range

Vincent GUFFON 4 years ago
parent
commit
682fad5c6a
1 changed files with 3 additions and 0 deletions
  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;
     }