Sfoglia il codice sorgente

fix select table model

hhniao 4 anni fa
parent
commit
e3c01f7437
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Grid/Filter/Presenter/SelectTable.php

+ 1 - 1
src/Grid/Filter/Presenter/SelectTable.php

@@ -67,7 +67,7 @@ class SelectTable extends Presenter
                 return [];
             }
 
-            return $model::find($v)->pluck($text, $id);
+            return $model::query()->where($id, $v)->pluck($text, $id);
         });
     }