{"action":"closed","issue":{"url":"https://api.github.com/repos/bolt/bolt/issues/7214","repository_url":"https://api.github.com/repos/bolt/bolt","labels_url":"https://api.github.com/repos/bolt/bolt/issues/7214/labels{/name}","comments_url":"https://api.github.com/repos/bolt/bolt/issues/7214/comments","events_url":"https://api.github.com/repos/bolt/bolt/issues/7214/events","html_url":"https://github.com/bolt/bolt/issues/7214","id":277039132,"number":7214,"title":"[bug] filtering on non searchable content type results in exception","user":{"login":"jadwigo","id":1488214,"avatar_url":"https://avatars0.githubusercontent.com/u/1488214?v=4","gravatar_id":"","url":"https://api.github.com/users/jadwigo","html_url":"https://github.com/jadwigo","followers_url":"https://api.github.com/users/jadwigo/followers","following_url":"https://api.github.com/users/jadwigo/following{/other_user}","gists_url":"https://api.github.com/users/jadwigo/gists{/gist_id}","starred_url":"https://api.github.com/users/jadwigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jadwigo/subscriptions","organizations_url":"https://api.github.com/users/jadwigo/orgs","repos_url":"https://api.github.com/users/jadwigo/repos","events_url":"https://api.github.com/users/jadwigo/events{/privacy}","received_events_url":"https://api.github.com/users/jadwigo/received_events","type":"User","site_admin":false},"labels":[{"id":7056812,"url":"https://api.github.com/repos/bolt/bolt/labels/bug","name":"bug","color":"BB1111","default":true}],"state":"closed","locked":false,"assignee":{"login":"rossriley","id":5082,"avatar_url":"https://avatars0.githubusercontent.com/u/5082?v=4","gravatar_id":"","url":"https://api.github.com/users/rossriley","html_url":"https://github.com/rossriley","followers_url":"https://api.github.com/users/rossriley/followers","following_url":"https://api.github.com/users/rossriley/following{/other_user}","gists_url":"https://api.github.com/users/rossriley/gists{/gist_id}","starred_url":"https://api.github.com/users/rossriley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossriley/subscriptions","organizations_url":"https://api.github.com/users/rossriley/orgs","repos_url":"https://api.github.com/users/rossriley/repos","events_url":"https://api.github.com/users/rossriley/events{/privacy}","received_events_url":"https://api.github.com/users/rossriley/received_events","type":"User","site_admin":false},"assignees":[{"login":"rossriley","id":5082,"avatar_url":"https://avatars0.githubusercontent.com/u/5082?v=4","gravatar_id":"","url":"https://api.github.com/users/rossriley","html_url":"https://github.com/rossriley","followers_url":"https://api.github.com/users/rossriley/followers","following_url":"https://api.github.com/users/rossriley/following{/other_user}","gists_url":"https://api.github.com/users/rossriley/gists{/gist_id}","starred_url":"https://api.github.com/users/rossriley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossriley/subscriptions","organizations_url":"https://api.github.com/users/rossriley/orgs","repos_url":"https://api.github.com/users/rossriley/repos","events_url":"https://api.github.com/users/rossriley/events{/privacy}","received_events_url":"https://api.github.com/users/rossriley/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-11-27T14:35:12Z","updated_at":"2017-12-06T09:52:34Z","closed_at":"2017-12-06T09:52:34Z","author_association":"CONTRIBUTOR","body":"If you use the back-end text filter on a content type that has `searchable: false` the back-end wil show a \"Whoops, looks like something went wrong.\" message or an exception is debug is on.\r\n\r\n> Uncaught Exception: QueryParseException .\r\n>\r\n> QueryParseException in SearchQuery.php line 103: \r\n> You have attempted to run a search query on an unknown ContentType or one that is not searchable\r\n\r\nDetails\r\n-------\r\n\r\n - Relevant Bolt Version:  3.4 \r\n - Install type: any\r\n - PHP version: 5.6 and 7.0\r\n - Used web server: Apache and Nginx \r\n - For UX/UI issues: n/a\r\n\r\nReproduction\r\n------------\r\n\r\n### Steps to reproduce\r\n\r\nCreate a content type, add `searchable: false` to the configuration. Add some content an then use the text filter.\r\n\r\n### Expected result\r\n\r\nIf you add  `searchable: false` you expect that you can still search/filter in bolt admin interface because the filter input field is still visible.\r\n\r\n### Actual result\r\n\r\nThe filter does not work and a whoops message or an exception will occur.\r\n\r\n### Proposed solution\r\n\r\nMake filtering in the back-end work for unsearchable content types anyway. Alternatively remove the text filter in the admin interface for unsearchable content types so site admins will not be confused.\r\n"}}
{"actor":{"display_login":"GawainLynch"}}