Browse Source

fix salvataggio corsi personalizzati

ferrari 4 tháng trước cách đây
mục cha
commit
792b56b2d7
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  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';