Просмотр исходного кода

fix salvataggio corsi personalizzati

ferrari 4 месяцев назад
Родитель
Сommit
792b56b2d7
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      app/Http/Livewire/Course.php

+ 5 - 3
app/Http/Livewire/Course.php

@@ -189,9 +189,11 @@ class Course extends Component
             $this->msgPrices = '';
             $this->msgWhen = '';
 
-            if ($this->when[0]['from'] == '')
-                $this->msgWhen = 'Devi inserire almeno un giorno';
-
+            if ($this->type == 'standard') {
+                if ($this->when[0]['from'] == '')
+                    $this->msgWhen = 'Devi inserire almeno un giorno';
+            }
+    
             if ($this->prices[0]['course_subscription_id'] == null)
                 $this->msgPrices = 'Devi inserire almeno un prezzo';