{"action":"created","issue":{"url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/123","labels_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/123/comments","events_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/123/events","html_url":"https://github.com/bleroy/OrchardImportTest/issues/123","id":65782030,"number":123,"title":"Error pops up while try to edit the role which has the same name as another role.","user":{"login":"bleroy","id":1165609,"avatar_url":"https://avatars.githubusercontent.com/u/1165609?v=3","gravatar_id":"","url":"https://api.github.com/users/bleroy","html_url":"https://github.com/bleroy","followers_url":"https://api.github.com/users/bleroy/followers","following_url":"https://api.github.com/users/bleroy/following{/other_user}","gists_url":"https://api.github.com/users/bleroy/gists{/gist_id}","starred_url":"https://api.github.com/users/bleroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleroy/subscriptions","organizations_url":"https://api.github.com/users/bleroy/orgs","repos_url":"https://api.github.com/users/bleroy/repos","events_url":"https://api.github.com/users/bleroy/events{/privacy}","received_events_url":"https://api.github.com/users/bleroy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-01T21:23:59Z","updated_at":"2015-04-01T21:25:00Z","closed_at":null,"body":"Repro steps:  \n1) Log on orchard site as admin account  \n2) Access [ http://172.18.20.86/Admin/Roles/Create\n](http://172.18.20.86/Admin/Roles/Create)  \n3) Input a role name such as “AccesAdminPanelAndManageUsers” and set some\npermissions for the role.  \n4) Repro step 2) and 3) to create a same role.  \n5) Access [ http://172.18.20.86/Admin/Roles ](http://172.18.20.86/Admin/Roles)  \n6) Click one “Edit” link of the two created roles  \nResult :There will show the following error:  \nServer Error in '/' Application.  \nSequence contains more than one element  \nDescription: An unhandled exception occurred during the execution of the\ncurrent web request. Please review the stack trace for more information about\nthe error and where it originated in the code.  \n  \nException Details: System.InvalidOperationException: Sequence contains more\nthan one element  \n  \nSource Error:  \nLine 105:  \nLine 106: public virtual T Get(Expression<Func<T, bool>> predicate) {  \nLine 107: return Fetch(predicate).SingleOrDefault();  \nLine 108: }  \nLine 109:  \n  \n  \nExpected: no error pops up.  \n\nWork Item Details\n--------------------\n**Original CodePlex Issue:**\t[Issue 16234](http://orchard.codeplex.com/workitem/16234)\n**Status:**\tClosed\n**Reason Closed:**\tUnassigned\n**Assigned to:**\tUnassigned\n**Reported on:**\tFeb 23, 2010 at 11:36 AM\n**Reported by:**\tvshling\n**Updated on:**\tMar 7, 2011 at 6:51 AM\n**Updated by:**\tJilkaBian\n**Closed on:**\tMar 7, 2011 at 6:51 AM\n**Closed by:**\tJilkaBian\n**Status:**\tClosed\n**Reason Closed:**\tUnassigned\n**Assigned to:**\tUnassigned\n**Reported on:**\tFeb 23, 2010 at 11:36 AM\n**Reported by:**\tvshling\n**Updated on:**\tMar 7, 2011 at 6:51 AM\n**Updated by:**\tJilkaBian\n**Closed on:**\tMar 7, 2011 at 6:51 AM\n**Closed by:**\tJilkaBian\n"},"comment":{"url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/comments/88635570","html_url":"https://github.com/bleroy/OrchardImportTest/issues/123#issuecomment-88635570","issue_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/123","id":88635570,"user":{"login":"bleroy","id":1165609,"avatar_url":"https://avatars.githubusercontent.com/u/1165609?v=3","gravatar_id":"","url":"https://api.github.com/users/bleroy","html_url":"https://github.com/bleroy","followers_url":"https://api.github.com/users/bleroy/followers","following_url":"https://api.github.com/users/bleroy/following{/other_user}","gists_url":"https://api.github.com/users/bleroy/gists{/gist_id}","starred_url":"https://api.github.com/users/bleroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleroy/subscriptions","organizations_url":"https://api.github.com/users/bleroy/orgs","repos_url":"https://api.github.com/users/bleroy/repos","events_url":"https://api.github.com/users/bleroy/events{/privacy}","received_events_url":"https://api.github.com/users/bleroy/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T21:25:00Z","updated_at":"2015-04-01T21:25:00Z","body":"On *2010-12-07 03:00:38 UTC*, **BertrandLeRoy** commented:\n\nOne of the two can still be removed, which is a good workaround.\n"}}