Browse Source

fixed users filter

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
46d4a788e6
2 changed files with 5 additions and 5 deletions
  1. 2
    2
      composer.lock
  2. 3
    3
      src/Auth/DataAccess/LuticateUsersDataAccess.php

+ 2
- 2
composer.lock View File

@@ -1370,7 +1370,7 @@
1370 1370
             "source": {
1371 1371
                 "type": "git",
1372 1372
                 "url": "https://git.rthoni.com/luticate/utils.git",
1373
-                "reference": "90cb2dc56aacf32443c2bfcbfb7fa80d8d54fb2e"
1373
+                "reference": "5fb261f087843bf2c145ae0bf3f2f3c435d102dd"
1374 1374
             },
1375 1375
             "require": {
1376 1376
                 "laravel/lumen-framework": "5.1.x-dev"
@@ -1388,7 +1388,7 @@
1388 1388
                 }
1389 1389
             ],
1390 1390
             "description": "Luticate user management system utils",
1391
-            "time": "2015-11-08 13:38:43"
1391
+            "time": "2015-11-08 13:55:42"
1392 1392
         },
1393 1393
         {
1394 1394
             "name": "monolog/monolog",

+ 3
- 3
src/Auth/DataAccess/LuticateUsersDataAccess.php View File

@@ -19,9 +19,9 @@ class LuticateUsersDataAccess extends LuDataAccess {
19 19
 
20 20
     protected static function getQueryPredicate($query)
21 21
     {
22
-        return array(array("username", "ilike", $query, "or"),
23
-            array("firstname", "ilike", $query, "or"),
24
-            array("lastname", "ilike", $query, "or"));
22
+        return array(array("username", "ilike", "%" . $query . "%", "or"),
23
+            array("firstname", "ilike", "%" . $query . "%", "or"),
24
+            array("lastname", "ilike", "%" . $query . "%", "or"));
25 25
     }
26 26
 
27 27
     /**

Loading…
Cancel
Save