Pārlūkot izejas kodu

hosts filter by url

tags/0.1.0
Robin Thoni 9 gadus atpakaļ
vecāks
revīzija
e71ef325c6
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4
    1
      app/Http/DataAccess/HostsDataAccess.php

+ 4
- 1
app/Http/DataAccess/HostsDataAccess.php Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt