{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1161","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1161/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1161/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1161/events","html_url":"https://github.com/silverstripe/silverstripe-cms/issues/1161","id":55561067,"number":1161,"title":"SiteTree UI is not updated on child pages when a parent page is unpublished","user":{"login":"silverstripe-elliot","id":5863816,"avatar_url":"https://avatars.githubusercontent.com/u/5863816?v=3","gravatar_id":"","url":"https://api.github.com/users/silverstripe-elliot","html_url":"https://github.com/silverstripe-elliot","followers_url":"https://api.github.com/users/silverstripe-elliot/followers","following_url":"https://api.github.com/users/silverstripe-elliot/following{/other_user}","gists_url":"https://api.github.com/users/silverstripe-elliot/gists{/gist_id}","starred_url":"https://api.github.com/users/silverstripe-elliot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverstripe-elliot/subscriptions","organizations_url":"https://api.github.com/users/silverstripe-elliot/orgs","repos_url":"https://api.github.com/users/silverstripe-elliot/repos","events_url":"https://api.github.com/users/silverstripe-elliot/events{/privacy}","received_events_url":"https://api.github.com/users/silverstripe-elliot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-27T00:59:09Z","updated_at":"2015-05-18T02:53:01Z","closed_at":null,"body":"When a CMS author unpublishes a parent page, the child pages are also unpublished. However, the SiteTree UI is not updated to reflect this change on the children. The parent page shows as a Draft, but none of the child pages will show as a Draft without logging out or refreshing the page. \r\n\r\nTo reproduce this issue on demo.silverstripe.org:\r\n1. Publish a page \"test\".\r\n2. Publish \"child1\" under \"test\r\n3. Publish \"child2\" under \"test\"\r\n4. Unpublish \"test\".\r\n5. Click either child page.\r\n    * Observe \"Draft\" badge is placed next to parent page in Site tree, but not on children\r\n    * Observe \"Save and publish\" is green and \"unpublish\" option is gone from \"More options\" on child page, indicating an unpublished page. \r\n\r\nIf you refresh the CMS or log in again, the parent and child pages show Draft badges.\r\n\r\n![parent-is-draft-child-is-unpublished-1](https://cloud.githubusercontent.com/assets/5863816/5911597/9d801398-a62c-11e4-9e4a-7359cf8a1170.png)\r\n![parent-is-draft-child-is-unpublished-3](https://cloud.githubusercontent.com/assets/5863816/5911652/6bc1460a-a62d-11e4-91ee-62116217cfea.png)"},"comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/comments/102902106","html_url":"https://github.com/silverstripe/silverstripe-cms/issues/1161#issuecomment-102902106","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/1161","id":102902106,"user":{"login":"tractorcow","id":936064,"avatar_url":"https://avatars.githubusercontent.com/u/936064?v=3","gravatar_id":"","url":"https://api.github.com/users/tractorcow","html_url":"https://github.com/tractorcow","followers_url":"https://api.github.com/users/tractorcow/followers","following_url":"https://api.github.com/users/tractorcow/following{/other_user}","gists_url":"https://api.github.com/users/tractorcow/gists{/gist_id}","starred_url":"https://api.github.com/users/tractorcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractorcow/subscriptions","organizations_url":"https://api.github.com/users/tractorcow/orgs","repos_url":"https://api.github.com/users/tractorcow/repos","events_url":"https://api.github.com/users/tractorcow/events{/privacy}","received_events_url":"https://api.github.com/users/tractorcow/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T02:53:01Z","updated_at":"2015-05-18T02:53:01Z","body":"Maybe we can fix it in 3.2?"}}