Explorar el Código

members - aggiunti controlli alla creazione corso

ferrari hace 2 meses
padre
commit
70e1d195b2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Livewire/Member.php

+ 1 - 1
app/Http/Livewire/Member.php

@@ -1737,7 +1737,7 @@ class Member extends Component
 
                 $start = date('Y-m-d', strtotime("+" . $r->months . " months", strtotime($start)));
 
-                if ($start > $this->course_date_to) {
+                if ($start > $this->course_date_to || $r->months == 0) {
                     $go = false;
                     break;
                 }