{"action":"closed","issue":{"url":"https://api.github.com/repos/OrchardCMS/OrchardTest/issues/2430","labels_url":"https://api.github.com/repos/OrchardCMS/OrchardTest/issues/2430/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/OrchardTest/issues/2430/comments","events_url":"https://api.github.com/repos/OrchardCMS/OrchardTest/issues/2430/events","html_url":"https://github.com/OrchardCMS/OrchardTest/issues/2430","id":67824807,"number":2430,"title":"InvalidOperationException in Rules/AdminController when trying to delete rule","user":{"login":"orchardbot","id":11788683,"avatar_url":"https://avatars.githubusercontent.com/u/11788683?v=3","gravatar_id":"","url":"https://api.github.com/users/orchardbot","html_url":"https://github.com/orchardbot","followers_url":"https://api.github.com/users/orchardbot/followers","following_url":"https://api.github.com/users/orchardbot/following{/other_user}","gists_url":"https://api.github.com/users/orchardbot/gists{/gist_id}","starred_url":"https://api.github.com/users/orchardbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orchardbot/subscriptions","organizations_url":"https://api.github.com/users/orchardbot/orgs","repos_url":"https://api.github.com/users/orchardbot/repos","events_url":"https://api.github.com/users/orchardbot/events{/privacy}","received_events_url":"https://api.github.com/users/orchardbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OrchardCMS/OrchardTest/labels/resolved","name":"resolved","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/OrchardCMS/OrchardTest/milestones/10","html_url":"https://github.com/OrchardCMS/OrchardTest/milestones/Orchard%201.4.1","labels_url":"https://api.github.com/repos/OrchardCMS/OrchardTest/milestones/10/labels","id":1062855,"number":10,"title":"Orchard 1.4.1","description":"This is a service release to address 1.4 bugs.\n\nPlease read our release notes for Orchard 1.4.1:\n[url:http://docs.orchardproject.net/Documentation/Orchard-1-4-Release-Notes]","creator":{"login":"orchardbot","id":11788683,"avatar_url":"https://avatars.githubusercontent.com/u/11788683?v=3","gravatar_id":"","url":"https://api.github.com/users/orchardbot","html_url":"https://github.com/orchardbot","followers_url":"https://api.github.com/users/orchardbot/followers","following_url":"https://api.github.com/users/orchardbot/following{/other_user}","gists_url":"https://api.github.com/users/orchardbot/gists{/gist_id}","starred_url":"https://api.github.com/users/orchardbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orchardbot/subscriptions","organizations_url":"https://api.github.com/users/orchardbot/orgs","repos_url":"https://api.github.com/users/orchardbot/repos","events_url":"https://api.github.com/users/orchardbot/events{/privacy}","received_events_url":"https://api.github.com/users/orchardbot/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":43,"state":"closed","created_at":"2015-04-11T05:02:11Z","updated_at":"2015-04-11T19:36:58Z","due_on":"2012-05-04T07:00:00Z","closed_at":"2015-04-11T05:02:11Z"},"comments":2,"created_at":"2012-04-03T17:17:03Z","updated_at":"2015-04-11T19:36:58Z","closed_at":"2015-04-11T19:36:58Z","body":"@Piedone created:\r\nhttps://orchard.codeplex.com/workitem/18603\r\n\r\nRepro:\r\n1) Create a new rule (it can be empty, it's not necessary to enable it).\r\n2) Try to delete it, but not with the Delete link but with checking it, selecting Delete from the top drop-down menu and clicking Apply.\r\n3) The following exception will be thrown and the rule won't be deleted.\r\n\nSystem.InvalidOperationException occurred\r\n  Message=The model of type 'Orchard.Rules.ViewModels.RulesIndexViewModel' could not be updated.\r\n  Source=System.Web.Mvc\r\n  StackTrace:\n   at System.Web.Mvc.Controller.UpdateModel[TModel](TModel model, String prefix, String[] includeProperties, String[] excludeProperties, IValueProvider valueProvider)\n   at System.Web.Mvc.Controller.UpdateModel[TModel](TModel model)\n   at Orchard.Rules.Controllers.AdminController.Index(FormCollection input)\n\nInnerException: \n"}}