浏览代码

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