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;
     }