{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/12755","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/12755/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/12755/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/12755/events","html_url":"https://github.com/joomla/joomla-cms/issues/12755","id":187408585,"number":12755,"title":"Template style set default when SEF is on.","user":{"login":"csiteru","id":23199340,"avatar_url":"https://avatars.githubusercontent.com/u/23199340?v=3","gravatar_id":"","url":"https://api.github.com/users/csiteru","html_url":"https://github.com/csiteru","followers_url":"https://api.github.com/users/csiteru/followers","following_url":"https://api.github.com/users/csiteru/following{/other_user}","gists_url":"https://api.github.com/users/csiteru/gists{/gist_id}","starred_url":"https://api.github.com/users/csiteru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csiteru/subscriptions","organizations_url":"https://api.github.com/users/csiteru/orgs","repos_url":"https://api.github.com/users/csiteru/repos","events_url":"https://api.github.com/users/csiteru/events{/privacy}","received_events_url":"https://api.github.com/users/csiteru/received_events","type":"User","site_admin":false},"labels":[{"id":138443932,"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-04T18:38:40Z","updated_at":"2016-11-07T08:26:40Z","closed_at":null,"body":"### Steps to reproduce the issue\r\nHi!\r\nMy post from this tread: https://github.com/joomla/joomla-cms/pull/12688 \r\nI found the bug why the template style always is set default on my site on j3.6.4.\r\nWhen SEF is off, in https://github.com/joomla/joomla-cms/blob/5b4816f32aa4f773a78ae4d302dd4c38dff9d8f5/libraries/cms/application/site.php#L440 is set right ItemId and template is set right. But is SEF is ON, This function returns 0 and $id set = 0 in line 448 ($id = $item->template_style_id). Thats why\r\n$template = $templates[$id]; is always = 0, and template style set defaunt.\r\nhttps://github.com/joomla/joomla-cms/blob/5b4816f32aa4f773a78ae4d302dd4c38dff9d8f5/libraries/cms/application/site.php#L506\r\n\r\n### Expected result\r\n\r\n\r\n\r\n### Actual result\r\n\r\n\r\n\r\n### System information (as much as possible)\r\nJoomla 3.6.4 php7, php5.6\r\nwhen downgrade to 3.6.2 - all is OK.\r\n\r\n\r\n### Additional comments\r\nhttp://www.screencast.com/t/U8lHx2ACh8S - video\r\n"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/258773507","html_url":"https://github.com/joomla/joomla-cms/issues/12755#issuecomment-258773507","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/12755","id":258773507,"user":{"login":"csiteru","id":23199340,"avatar_url":"https://avatars.githubusercontent.com/u/23199340?v=3","gravatar_id":"","url":"https://api.github.com/users/csiteru","html_url":"https://github.com/csiteru","followers_url":"https://api.github.com/users/csiteru/followers","following_url":"https://api.github.com/users/csiteru/following{/other_user}","gists_url":"https://api.github.com/users/csiteru/gists{/gist_id}","starred_url":"https://api.github.com/users/csiteru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csiteru/subscriptions","organizations_url":"https://api.github.com/users/csiteru/orgs","repos_url":"https://api.github.com/users/csiteru/repos","events_url":"https://api.github.com/users/csiteru/events{/privacy}","received_events_url":"https://api.github.com/users/csiteru/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T08:26:40Z","updated_at":"2016-11-07T08:26:40Z","body":"@mahagr You right, but in joomla 4.6.2 all works well...."}}
{"actor":{"display_login":"csiteru"}}