{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2721","repository_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2721/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2721/comments","events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2721/events","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/2721","id":57697424,"number":2721,"title":"Admin definition with no tabs and no closing tab causes exception","user":{"login":"EdwardIII","id":412107,"avatar_url":"https://avatars.githubusercontent.com/u/412107?v=3","gravatar_id":"","url":"https://api.github.com/users/EdwardIII","html_url":"https://github.com/EdwardIII","followers_url":"https://api.github.com/users/EdwardIII/followers","following_url":"https://api.github.com/users/EdwardIII/following{/other_user}","gists_url":"https://api.github.com/users/EdwardIII/gists{/gist_id}","starred_url":"https://api.github.com/users/EdwardIII/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdwardIII/subscriptions","organizations_url":"https://api.github.com/users/EdwardIII/orgs","repos_url":"https://api.github.com/users/EdwardIII/repos","events_url":"https://api.github.com/users/EdwardIII/events{/privacy}","received_events_url":"https://api.github.com/users/EdwardIII/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2015-02-14T16:06:21Z","updated_at":"2016-08-08T10:12:16Z","closed_at":null,"body":"When I tried to add the SeoBundle I kept seeing this error:\r\n\r\n    You should close previous group with end() before adding new tab\r\n\r\nIt seemed to be because my admin definition with no tabs needed to close an implicit tab:\r\n\r\nhttps://gist.github.com/EdwardIII/8d9f36b482db9be5ae47 (works when adding ->close() to the end).\r\n\r\nThis seems a little confusing?\r\n\r\nRedirected here by @dbu from https://github.com/symfony-cmf/SeoBundle/issues/211"},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/comments/238195525","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/2721#issuecomment-238195525","issue_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2721","id":238195525,"user":{"login":"greg0ire","id":657779,"avatar_url":"https://avatars.githubusercontent.com/u/657779?v=3","gravatar_id":"","url":"https://api.github.com/users/greg0ire","html_url":"https://github.com/greg0ire","followers_url":"https://api.github.com/users/greg0ire/followers","following_url":"https://api.github.com/users/greg0ire/following{/other_user}","gists_url":"https://api.github.com/users/greg0ire/gists{/gist_id}","starred_url":"https://api.github.com/users/greg0ire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg0ire/subscriptions","organizations_url":"https://api.github.com/users/greg0ire/orgs","repos_url":"https://api.github.com/users/greg0ire/repos","events_url":"https://api.github.com/users/greg0ire/events{/privacy}","received_events_url":"https://api.github.com/users/greg0ire/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T10:12:16Z","updated_at":"2016-08-08T10:12:16Z","body":"Oh yes, that could work indeed I think.\r\n\r\n> I recall reading about an if function\r\n\r\nI found [something similar](https://github.com/sonata-project/SonataAdminBundle/blob/3.x/Mapper/BaseGroupedMapper.php#L154) (`ifTrue` and `ifFalse`, actually), which means chaining should be possible in all situations :+1: "}}
{"actor":{"display_login":"greg0ire"}}