{"action":"created","issue":{"url":"https://api.github.com/repos/Nayjest/Grids/issues/76","labels_url":"https://api.github.com/repos/Nayjest/Grids/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/Nayjest/Grids/issues/76/comments","events_url":"https://api.github.com/repos/Nayjest/Grids/issues/76/events","html_url":"https://github.com/Nayjest/Grids/issues/76","id":107701295,"number":76,"title":"Pagination stops working, when using custom setFilteringFunc()","user":{"login":"TUNER88","id":1565397,"avatar_url":"https://avatars.githubusercontent.com/u/1565397?v=3","gravatar_id":"","url":"https://api.github.com/users/TUNER88","html_url":"https://github.com/TUNER88","followers_url":"https://api.github.com/users/TUNER88/followers","following_url":"https://api.github.com/users/TUNER88/following{/other_user}","gists_url":"https://api.github.com/users/TUNER88/gists{/gist_id}","starred_url":"https://api.github.com/users/TUNER88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TUNER88/subscriptions","organizations_url":"https://api.github.com/users/TUNER88/orgs","repos_url":"https://api.github.com/users/TUNER88/repos","events_url":"https://api.github.com/users/TUNER88/events{/privacy}","received_events_url":"https://api.github.com/users/TUNER88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-09-22T12:05:48Z","updated_at":"2015-11-24T15:10:24Z","closed_at":null,"body":"I try to create like filter on 2 fields:\r\n\r\n```php\r\n        $grid = new Grid(\r\n            (new GridConfig)\r\n                ->setName('file_grid')\r\n                ->setPageSize(10)\r\n                ->setTemplate('nayjest.grids.default')\r\n                ->setDataProvider(new EloquentDataProvider($query))\r\n                ->setColumns([\r\n                    (new FieldConfig)\r\n                        ->setName('name')\r\n                        ->setLabel(Lang::get('models/file.name'))\r\n                        ->setSortable(true)\r\n                        ->addFilter(\r\n                            (new FilterConfig)\r\n                                ->setName('name')\r\n                                ->setFilteringFunc(function ($val, EloquentDataProvider $dp) {\r\n                                    $builder = $dp->getBuilder();\r\n                                    $builder->where('name', 'LIKE', '%'.$val.'%')\r\n                                        ->orWhere('description', 'LIKE', '%'.$val.'%');\r\n                                })\r\n                        )\r\n                ])\r\n                ->setComponents([\r\n                    (new THead)\r\n                        ->setComponents([\r\n                            (new ColumnHeadersRow),\r\n                            (new FiltersRow)\r\n                        ])\r\n                    ,\r\n                    (new TFoot)\r\n                        ->setComponents([\r\n                            (new OneCellRow)\r\n                                ->setComponents([\r\n                                    new Pager,\r\n                                    (new HtmlTag)\r\n                                        ->setAttributes(['class' => 'pull-right'])\r\n                                        ->addComponent(new ShowingRecords)\r\n                                    ,\r\n                                ]),\r\n                        ])\r\n                ])\r\n        );\r\n```\r\nFirst result page displays valid results, second page lose my search string and return results without filter.\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/Nayjest/Grids/issues/comments/159296739","html_url":"https://github.com/Nayjest/Grids/issues/76#issuecomment-159296739","issue_url":"https://api.github.com/repos/Nayjest/Grids/issues/76","id":159296739,"user":{"login":"Nayjest","id":153999,"avatar_url":"https://avatars.githubusercontent.com/u/153999?v=3","gravatar_id":"","url":"https://api.github.com/users/Nayjest","html_url":"https://github.com/Nayjest","followers_url":"https://api.github.com/users/Nayjest/followers","following_url":"https://api.github.com/users/Nayjest/following{/other_user}","gists_url":"https://api.github.com/users/Nayjest/gists{/gist_id}","starred_url":"https://api.github.com/users/Nayjest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nayjest/subscriptions","organizations_url":"https://api.github.com/users/Nayjest/orgs","repos_url":"https://api.github.com/users/Nayjest/repos","events_url":"https://api.github.com/users/Nayjest/events{/privacy}","received_events_url":"https://api.github.com/users/Nayjest/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T15:10:24Z","updated_at":"2015-11-24T15:10:24Z","body":"Upd: some my reports has broken after this fix, trying to locate the problem now."}}