{"action":"created","issue":{"url":"https://api.github.com/repos/modxcms/Collections/issues/153","labels_url":"https://api.github.com/repos/modxcms/Collections/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/modxcms/Collections/issues/153/comments","events_url":"https://api.github.com/repos/modxcms/Collections/issues/153/events","html_url":"https://github.com/modxcms/Collections/issues/153","id":101634837,"number":153,"title":"Error saving without \"Default for templates\" in Update View","user":{"login":"inreti","id":2852461,"avatar_url":"https://avatars.githubusercontent.com/u/2852461?v=3","gravatar_id":"","url":"https://api.github.com/users/inreti","html_url":"https://github.com/inreti","followers_url":"https://api.github.com/users/inreti/followers","following_url":"https://api.github.com/users/inreti/following{/other_user}","gists_url":"https://api.github.com/users/inreti/gists{/gist_id}","starred_url":"https://api.github.com/users/inreti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inreti/subscriptions","organizations_url":"https://api.github.com/users/inreti/orgs","repos_url":"https://api.github.com/users/inreti/repos","events_url":"https://api.github.com/users/inreti/events{/privacy}","received_events_url":"https://api.github.com/users/inreti/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/modxcms/Collections/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"theboxer","id":845220,"avatar_url":"https://avatars.githubusercontent.com/u/845220?v=3","gravatar_id":"","url":"https://api.github.com/users/theboxer","html_url":"https://github.com/theboxer","followers_url":"https://api.github.com/users/theboxer/followers","following_url":"https://api.github.com/users/theboxer/following{/other_user}","gists_url":"https://api.github.com/users/theboxer/gists{/gist_id}","starred_url":"https://api.github.com/users/theboxer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theboxer/subscriptions","organizations_url":"https://api.github.com/users/theboxer/orgs","repos_url":"https://api.github.com/users/theboxer/repos","events_url":"https://api.github.com/users/theboxer/events{/privacy}","received_events_url":"https://api.github.com/users/theboxer/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-08-18T11:28:06Z","updated_at":"2015-08-18T11:34:12Z","closed_at":null,"body":"With the latest 3.2.2 I get an error message when I try to save a View (Update) where nothing is set at \"Default for templates\" (dft) field. It complains about \"Templates XYZ already have assigned Collection View\", where XYZ are views which do have a dft set. \r\n\r\nSo it seems to check for an overlapping definition here: when we create a new Resource with a template of XYZ, we do have multiple Views which could be chosen: the one having no dft and the one with having XYZ in dft field... it is good to check here, but IMHO it would be even better to give a more helpful warning instead of an error. After clicking the error away, it seems to be saved anyways, but it didn't..."},"comment":{"url":"https://api.github.com/repos/modxcms/Collections/issues/comments/132182017","html_url":"https://github.com/modxcms/Collections/issues/153#issuecomment-132182017","issue_url":"https://api.github.com/repos/modxcms/Collections/issues/153","id":132182017,"user":{"login":"inreti","id":2852461,"avatar_url":"https://avatars.githubusercontent.com/u/2852461?v=3","gravatar_id":"","url":"https://api.github.com/users/inreti","html_url":"https://github.com/inreti","followers_url":"https://api.github.com/users/inreti/followers","following_url":"https://api.github.com/users/inreti/following{/other_user}","gists_url":"https://api.github.com/users/inreti/gists{/gist_id}","starred_url":"https://api.github.com/users/inreti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inreti/subscriptions","organizations_url":"https://api.github.com/users/inreti/orgs","repos_url":"https://api.github.com/users/inreti/repos","events_url":"https://api.github.com/users/inreti/events{/privacy}","received_events_url":"https://api.github.com/users/inreti/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T11:34:12Z","updated_at":"2015-08-18T11:34:12Z","body":"Update: the example blog view is set as default view with empty dft field. This produces:\r\n* the bug occuring on every other view you add\r\n* you cannot simply delete the blog view (as it is a default view)\r\n... thus making it harder to refactor your environment to workaround the error message :-("}}