{"action":"closed","issue":{"url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/503","labels_url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/503/comments","events_url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/503/events","html_url":"https://github.com/SitecorePowerShell/Console/issues/503","id":107530930,"number":503,"title":"Set-Layout command seems not to work","user":{"login":"AbsoluteSoftwareGmbh","id":14576612,"avatar_url":"https://avatars.githubusercontent.com/u/14576612?v=3","gravatar_id":"","url":"https://api.github.com/users/AbsoluteSoftwareGmbh","html_url":"https://github.com/AbsoluteSoftwareGmbh","followers_url":"https://api.github.com/users/AbsoluteSoftwareGmbh/followers","following_url":"https://api.github.com/users/AbsoluteSoftwareGmbh/following{/other_user}","gists_url":"https://api.github.com/users/AbsoluteSoftwareGmbh/gists{/gist_id}","starred_url":"https://api.github.com/users/AbsoluteSoftwareGmbh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbsoluteSoftwareGmbh/subscriptions","organizations_url":"https://api.github.com/users/AbsoluteSoftwareGmbh/orgs","repos_url":"https://api.github.com/users/AbsoluteSoftwareGmbh/repos","events_url":"https://api.github.com/users/AbsoluteSoftwareGmbh/events{/privacy}","received_events_url":"https://api.github.com/users/AbsoluteSoftwareGmbh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SitecorePowerShell/Console/labels/bug-regression","name":"bug-regression","color":"fc2929"},{"url":"https://api.github.com/repos/SitecorePowerShell/Console/labels/impact-limited-sitecore-8","name":"impact-limited-sitecore-8","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":{"login":"AdamNaj","id":1209953,"avatar_url":"https://avatars.githubusercontent.com/u/1209953?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamNaj","html_url":"https://github.com/AdamNaj","followers_url":"https://api.github.com/users/AdamNaj/followers","following_url":"https://api.github.com/users/AdamNaj/following{/other_user}","gists_url":"https://api.github.com/users/AdamNaj/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamNaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamNaj/subscriptions","organizations_url":"https://api.github.com/users/AdamNaj/orgs","repos_url":"https://api.github.com/users/AdamNaj/repos","events_url":"https://api.github.com/users/AdamNaj/events{/privacy}","received_events_url":"https://api.github.com/users/AdamNaj/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/SitecorePowerShell/Console/milestones/19","html_url":"https://github.com/SitecorePowerShell/Console/milestones/4.0","labels_url":"https://api.github.com/repos/SitecorePowerShell/Console/milestones/19/labels","id":1286073,"number":19,"title":"4.0","description":"","creator":{"login":"AdamNaj","id":1209953,"avatar_url":"https://avatars.githubusercontent.com/u/1209953?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamNaj","html_url":"https://github.com/AdamNaj","followers_url":"https://api.github.com/users/AdamNaj/followers","following_url":"https://api.github.com/users/AdamNaj/following{/other_user}","gists_url":"https://api.github.com/users/AdamNaj/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamNaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamNaj/subscriptions","organizations_url":"https://api.github.com/users/AdamNaj/orgs","repos_url":"https://api.github.com/users/AdamNaj/repos","events_url":"https://api.github.com/users/AdamNaj/events{/privacy}","received_events_url":"https://api.github.com/users/AdamNaj/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":43,"state":"open","created_at":"2015-09-02T11:47:12Z","updated_at":"2016-01-01T23:22:26Z","due_on":"2015-12-30T23:00:00Z","closed_at":null},"comments":2,"created_at":"2015-09-21T14:57:06Z","updated_at":"2016-01-01T23:22:26Z","closed_at":"2016-01-01T23:22:26Z","body":"Hello together,\r\n\r\nafter many tries i suspect in versions 3.3 for Sitecore 8 (rev. 150121), the set-layout command seems not to work. The item shows \"[No layout specified]\".\r\n\r\nExample:\r\n```powershell\r\n@(get-item . -language *) + (get-childitem . -r -language *) | foreach-object { resetFields($_) }\r\nfunction resetFields($_item)\r\n{\r\n        $_CP = get-item master:/content/fischer-global-content/home/\"fischer innovations\"/\"fastfix\"\r\n        $_LayoutDevice = Get-LayoutDevice -name \"default\"\r\n        $_CPLayout = Get-Layout -item $_CP -device $_LayoutDevice\r\n        \r\n        if ($_execute -eq 1)\r\n        {\r\n            $_item | Reset-ItemField -IncludeStandardFields\r\n            set-layout -item $_item -Device $_LayoutDevice -layout $_CPLayout\r\n        }\r\n}\r\n```\r\nThanks in advance\r\nAbsoluteSoftwareGmbh"}}