소스 검색

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';