{"action":"closed","issue":{"url":"https://api.github.com/repos/the-control-group/voyager/issues/3768","repository_url":"https://api.github.com/repos/the-control-group/voyager","labels_url":"https://api.github.com/repos/the-control-group/voyager/issues/3768/labels{/name}","comments_url":"https://api.github.com/repos/the-control-group/voyager/issues/3768/comments","events_url":"https://api.github.com/repos/the-control-group/voyager/issues/3768/events","html_url":"https://github.com/the-control-group/voyager/issues/3768","id":385361129,"node_id":"MDU6SXNzdWUzODUzNjExMjk=","number":3768,"title":"Pagination Search bar does not show database columns in \"#search_key\" dropdown","user":{"login":"GreenWhiteDev","id":24904288,"node_id":"MDQ6VXNlcjI0OTA0Mjg4","avatar_url":"https://avatars0.githubusercontent.com/u/24904288?v=4","gravatar_id":"","url":"https://api.github.com/users/GreenWhiteDev","html_url":"https://github.com/GreenWhiteDev","followers_url":"https://api.github.com/users/GreenWhiteDev/followers","following_url":"https://api.github.com/users/GreenWhiteDev/following{/other_user}","gists_url":"https://api.github.com/users/GreenWhiteDev/gists{/gist_id}","starred_url":"https://api.github.com/users/GreenWhiteDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GreenWhiteDev/subscriptions","organizations_url":"https://api.github.com/users/GreenWhiteDev/orgs","repos_url":"https://api.github.com/users/GreenWhiteDev/repos","events_url":"https://api.github.com/users/GreenWhiteDev/events{/privacy}","received_events_url":"https://api.github.com/users/GreenWhiteDev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-11-28T16:49:27Z","updated_at":"2018-11-28T23:14:59Z","closed_at":"2018-11-28T23:14:59Z","author_association":"NONE","body":"<!---\r\nIF YOU'RE POSTING A QUESTION ABOUT HOW TO USE VOYAGER, PLEASE CONSIDER ASKING IN SLACK FIRST\r\n--->\r\n## Version information\r\n<!--- The following information is required for bug reports.  Issues without it will be closed without response --->\r\n - Laravel: v5.6\r\n - Voyager: v1.1.0\r\n - PHP: 7.1\r\n - Database: 10.1.22-MariaDB- Debian 9.0\r\n\r\n## Description\r\n<!--- Describe the bug --->\r\nWhen Server Side pagination is activated, the search functionality fails to work correctly. The Search key select drop down in the search bar shows \"No Results Found\". The `$searchable` variable returns as `null`.\r\n\r\n`$searchable = $dataType->server_side ? array_keys(SchemaManager::describeTable(app($dataType->model_name)->getTable())->toArray()) : '';`\r\n\r\n## Steps To Reproduce\r\nSteps to reproduce the behavior:\r\n1. Create a BREAD\r\n2. Activate the \"Server-side Pagination\" option.\r\n3. Try to perform a search.\r\n4. The first field in the search bar reads \"No Results Found\".\r\n\r\n## Expected behavior\r\nThe first field should provide a list of the database columns to make the search possible\r\n\r\n## Screenshots\r\n![invoice](https://user-images.githubusercontent.com/24904288/49167568-eecc9000-f335-11e8-8a72-0194fa04a841.jpg)\r\n\r\n\r\n"}}
{"actor":{"display_login":"GreenWhiteDev"}}