{"action":"closed","issue":{"url":"https://api.github.com/repos/Pennebaker/craftcms-thearchitect/issues/23","repository_url":"https://api.github.com/repos/Pennebaker/craftcms-thearchitect","labels_url":"https://api.github.com/repos/Pennebaker/craftcms-thearchitect/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/Pennebaker/craftcms-thearchitect/issues/23/comments","events_url":"https://api.github.com/repos/Pennebaker/craftcms-thearchitect/issues/23/events","html_url":"https://github.com/Pennebaker/craftcms-thearchitect/issues/23","id":184475227,"number":23,"title":"Errors when exporting sections not assigned to primary locale","user":{"login":"steverowling","id":4478560,"avatar_url":"https://avatars.githubusercontent.com/u/4478560?v=3","gravatar_id":"","url":"https://api.github.com/users/steverowling","html_url":"https://github.com/steverowling","followers_url":"https://api.github.com/users/steverowling/followers","following_url":"https://api.github.com/users/steverowling/following{/other_user}","gists_url":"https://api.github.com/users/steverowling/gists{/gist_id}","starred_url":"https://api.github.com/users/steverowling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steverowling/subscriptions","organizations_url":"https://api.github.com/users/steverowling/orgs","repos_url":"https://api.github.com/users/steverowling/repos","events_url":"https://api.github.com/users/steverowling/events{/privacy}","received_events_url":"https://api.github.com/users/steverowling/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Pennebaker/craftcms-thearchitect/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-21T12:37:52Z","updated_at":"2016-10-24T15:15:41Z","closed_at":"2016-10-24T15:15:41Z","body":"The Architect 1.5.2, Craft CMS Pro 2.6.2949\r\n\r\nI'm experiencing errors when I'm attempting to export sections that have only been assigned to a locale that is not the primary locale for the site.\r\n\r\nScreenshot of error attached.\r\n\r\n![screen shot 2016-10-21 at 13 24 31](https://cloud.githubusercontent.com/assets/4478560/19598247/c60cf68e-9791-11e6-8bcb-c59a8de69554.png)\r\n\r\nThe sections in question don't have URLs and the error is being thrown by the line attempting to set the `nestedUrlFormat` for the section, which appears to always be referencing the primary locale for the site.\r\n\r\nWould it make more sense to first check if there is a `urlFormat` set for the section and automatically set the `nestedUrlFormat` to `null` if the section doesn't have URLs?"}}
{"actor":{"display_login":"spAnser"}}