Ver código fonte

hosts filter by url

tags/0.1.0
Robin Thoni 9 anos atrás
pai
commit
e71ef325c6
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4
    1
      app/Http/DataAccess/HostsDataAccess.php

+ 4
- 1
app/Http/DataAccess/HostsDataAccess.php Ver arquivo

@@ -19,7 +19,10 @@ class HostsDataAccess extends LuDataAccess {
19 19
 
20 20
     protected static function getQueryPredicate($query)
21 21
     {
22
-        return array(array("name", "ilike", "%" . $query . "%"));
22
+        return array(
23
+            array("name", "ilike", "%" . $query . "%", "or"),
24
+            array("url", "ilike", "%" . $query . "%", "or")
25
+        );
23 26
     }
24 27
 
25 28
     /**

Carregando…
Cancelar
Salvar