Browse Source

hosts filter by url

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
e71ef325c6
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      app/Http/DataAccess/HostsDataAccess.php

+ 4
- 1
app/Http/DataAccess/HostsDataAccess.php View File

@@ -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
     /**

Loading…
Cancel
Save