ソースを参照

fixed users filter

tags/0.1.0
Robin Thoni 8年前
コミット
46d4a788e6
2個のファイルの変更5行の追加5行の削除
  1. 2
    2
      composer.lock
  2. 3
    3
      src/Auth/DataAccess/LuticateUsersDataAccess.php

+ 2
- 2
composer.lock ファイルの表示

1370
             "source": {
1370
             "source": {
1371
                 "type": "git",
1371
                 "type": "git",
1372
                 "url": "https://git.rthoni.com/luticate/utils.git",
1372
                 "url": "https://git.rthoni.com/luticate/utils.git",
1373
-                "reference": "90cb2dc56aacf32443c2bfcbfb7fa80d8d54fb2e"
1373
+                "reference": "5fb261f087843bf2c145ae0bf3f2f3c435d102dd"
1374
             },
1374
             },
1375
             "require": {
1375
             "require": {
1376
                 "laravel/lumen-framework": "5.1.x-dev"
1376
                 "laravel/lumen-framework": "5.1.x-dev"
1388
                 }
1388
                 }
1389
             ],
1389
             ],
1390
             "description": "Luticate user management system utils",
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
             "name": "monolog/monolog",
1394
             "name": "monolog/monolog",

+ 3
- 3
src/Auth/DataAccess/LuticateUsersDataAccess.php ファイルの表示

19
 
19
 
20
     protected static function getQueryPredicate($query)
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
     /**

読み込み中…
キャンセル
保存