{"action":"created","issue":{"url":"https://api.github.com/repos/rainlab/forum-plugin/issues/74","labels_url":"https://api.github.com/repos/rainlab/forum-plugin/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/rainlab/forum-plugin/issues/74/comments","events_url":"https://api.github.com/repos/rainlab/forum-plugin/issues/74/events","html_url":"https://github.com/rainlab/forum-plugin/issues/74","id":96948031,"number":74,"title":"Backend Edit Channels Error - slug not getting replaced.","user":{"login":"jayalfredprufrock","id":415763,"avatar_url":"https://avatars.githubusercontent.com/u/415763?v=3","gravatar_id":"","url":"https://api.github.com/users/jayalfredprufrock","html_url":"https://github.com/jayalfredprufrock","followers_url":"https://api.github.com/users/jayalfredprufrock/followers","following_url":"https://api.github.com/users/jayalfredprufrock/following{/other_user}","gists_url":"https://api.github.com/users/jayalfredprufrock/gists{/gist_id}","starred_url":"https://api.github.com/users/jayalfredprufrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayalfredprufrock/subscriptions","organizations_url":"https://api.github.com/users/jayalfredprufrock/orgs","repos_url":"https://api.github.com/users/jayalfredprufrock/repos","events_url":"https://api.github.com/users/jayalfredprufrock/events{/privacy}","received_events_url":"https://api.github.com/users/jayalfredprufrock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-24T02:41:29Z","updated_at":"2015-08-04T15:41:55Z","closed_at":null,"body":"When clicking on a channel to edit it within the backend I get the following error:\r\n\r\nForm record with an ID of :id could not be found.\r\n\r\nI've tried deleting and creating new channels as well as uninstalling and reinstalling the forum component. Nothing seems to make this error go away. If I manually replace \":id\" with the actual id of a channel everything works as expected.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/24862600-backend-edit-channels-error-slug-not-getting-replaced?utm_campaign=plugin&utm_content=tracker%2F728725&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F728725&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/rainlab/forum-plugin/issues/comments/127653998","html_url":"https://github.com/rainlab/forum-plugin/issues/74#issuecomment-127653998","issue_url":"https://api.github.com/repos/rainlab/forum-plugin/issues/74","id":127653998,"user":{"login":"gregorybleiker","id":1917329,"avatar_url":"https://avatars.githubusercontent.com/u/1917329?v=3","gravatar_id":"","url":"https://api.github.com/users/gregorybleiker","html_url":"https://github.com/gregorybleiker","followers_url":"https://api.github.com/users/gregorybleiker/followers","following_url":"https://api.github.com/users/gregorybleiker/following{/other_user}","gists_url":"https://api.github.com/users/gregorybleiker/gists{/gist_id}","starred_url":"https://api.github.com/users/gregorybleiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregorybleiker/subscriptions","organizations_url":"https://api.github.com/users/gregorybleiker/orgs","repos_url":"https://api.github.com/users/gregorybleiker/repos","events_url":"https://api.github.com/users/gregorybleiker/events{/privacy}","received_events_url":"https://api.github.com/users/gregorybleiker/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T15:41:55Z","updated_at":"2015-08-04T15:41:55Z","body":"I had the same problem. You need to change \r\n```\r\n    /**\r\n     * @var array The attributes that should be visible in arrays.\r\n     */\r\n    protected $visible = ['title', 'description'];\r\n```\r\nto\r\n```\r\n    /**\r\n     * @var array The attributes that should be visible in arrays.\r\n     */\r\n    protected $visible = ['id', 'title', 'description'];\r\n```\r\nin model/Channel.php\r\nI'll do a pull request or maybe @daftspunk will pick it up, which would be even nicer ;)\r\nMaybe id was visible by default sometime earlier on? \r\n"}}