فهرست منبع

fix salvataggio corsi personalizzati

ferrari 4 ماه پیش
والد
کامیت
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';