{"action":"closed","issue":{"url":"https://api.github.com/repos/OrchardCMS/OrchardTest/issues/2335","labels_url":"https://api.github.com/repos/OrchardCMS/OrchardTest/issues/2335/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/OrchardTest/issues/2335/comments","events_url":"https://api.github.com/repos/OrchardCMS/OrchardTest/issues/2335/events","html_url":"https://github.com/OrchardCMS/OrchardTest/issues/2335","id":67824532,"number":2335,"title":"projector - filtering on enumeration field value when list mode allows multi-selections","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":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2012-03-02T03:36:09Z","updated_at":"2015-04-11T19:34:35Z","closed_at":"2015-04-11T19:34:35Z","body":"__planetClaire__ created:\r\nhttps://orchard.codeplex.com/workitem/18508\r\n\r\nIf an enumeration field's list mode allows multiple selections then filtering on \"equal to\" doesn't work, and \"contains\" must be used instead, which is a bit counter-intuitive.\r\n\r\nFor example:\r\n1. add an enum field to a type, and give it a list mode of checkbox - add some options\r\n2. create a content item & select only one option from the enum field. \r\n3. Create a query & add a filter on the field value \"equal to\" the option value selected in 2.  In practice I would expect this to return the item I created in 2.\r\n4. Preview the query - no results\r\n5. Change the filter to \"Contains\" - the preview now shows the item.\r\n6. Or, change the list mode to radio button list & resave - the query now works.\r\n\r\nShape tracing shows the field value is surrounded by semicolons."}}