Explorar o código

members - aggiunti controlli alla creazione corso

ferrari hai 2 meses
pai
achega
70e1d195b2
Modificáronse 1 ficheiros con 1 adicións e 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;
                 }