{"action":"opened","issue":{"url":"https://api.github.com/repos/sulu/sulu/issues/3429","repository_url":"https://api.github.com/repos/sulu/sulu","labels_url":"https://api.github.com/repos/sulu/sulu/issues/3429/labels{/name}","comments_url":"https://api.github.com/repos/sulu/sulu/issues/3429/comments","events_url":"https://api.github.com/repos/sulu/sulu/issues/3429/events","html_url":"https://github.com/sulu/sulu/issues/3429","id":240429928,"number":3429,"title":"Template switch throws error in case of missing block-type","user":{"login":"dmetzler1988","id":8446518,"avatar_url":"https://avatars3.githubusercontent.com/u/8446518?v=3","gravatar_id":"","url":"https://api.github.com/users/dmetzler1988","html_url":"https://github.com/dmetzler1988","followers_url":"https://api.github.com/users/dmetzler1988/followers","following_url":"https://api.github.com/users/dmetzler1988/following{/other_user}","gists_url":"https://api.github.com/users/dmetzler1988/gists{/gist_id}","starred_url":"https://api.github.com/users/dmetzler1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmetzler1988/subscriptions","organizations_url":"https://api.github.com/users/dmetzler1988/orgs","repos_url":"https://api.github.com/users/dmetzler1988/repos","events_url":"https://api.github.com/users/dmetzler1988/events{/privacy}","received_events_url":"https://api.github.com/users/dmetzler1988/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-04T14:01:44Z","updated_at":"2017-07-04T14:01:44Z","closed_at":null,"body":"| Q | A\r\n| --- | ---\r\n| Bug? | yes\r\n| New Feature? | no\r\n| Sulu Version | 1.6\r\n\r\n#### Actual Behavior\r\n\r\nIf you have two templates with a block named \"blocks\" which have different block-types in it, then an error on template switch occurs (in developer console) (fields must be filled before switch).\r\n\r\n#### Expected Behavior\r\n\r\nWe should need to switch templates - no matter if there are elements/blocks or something with the same name. No error should occur.\r\n\r\n#### Steps to Reproduce\r\n\r\n1. Create a template (default.xml) with a block named \"blocks\" with a block type \"text\" as example. \r\n2. Create a new template (xyz.xml) with the same block and name, but with a different block type. \r\n3. Go to sulu backend, select template default and fill in some datas in the block and save it.\r\n4. Now try to switch the template to xyz - now the loader will be shown and never ends. An error will occurs in development console.\r\n"}}
{"actor":{"display_login":"dmetzler1988"}}