Ver código fonte

dateTime Range

Vincent GUFFON 4 anos atrás
pai
commit
682fad5c6a
1 arquivos alterados com 3 adições e 0 exclusões
  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;
     }