Преглед изворни кода

inserimento rata - fix selezione mesi

ferrari пре 3 месеци
родитељ
комит
e3aa31a891
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Http/Livewire/Rate.php

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

@@ -160,7 +160,7 @@ class Rate extends Component
             else
             {
 
-                if ($this->type > 1 && $this->type != sizeof($this->months))
+                if ($this->type > 1 && $this->type < sizeof($this->months))
                 {
                     // $this->errorMsg = 'Hai selezionato un numero di mesi errato in base all\'abbonamento selezionato' . $this->type .'.'. sizeof($this->months);
                     $this->errorMsg = 'Mesi selezionati superiori a quelli previsti dall’abbonamento';