I think this is a bug. It is not possible to create a query where the value of a contentpickerfield is the filter.
These are the steps to reproduce:
-
I add a field to the type Blogpost. This field is of type
Contentpicker. I call it Related Page.
- Then I create to regular pages (ContentType Page).
- I create 4 blogposts. Two blogposts get PageOne as selected value in the RelatedPage field. The other two posts get PageTwo as selected value in the RelatedPage.
-
Now I create a query with filter ContentType is BlogPost. And a filter with Blog Post.Related Page equals {21} (that is the Id of PageOne).
I would expect to get results BlogPostOne and BlogPostTwo. Instead I don't get results. So is the query wrong and how should I do it then. Or is there a bug with filters for ContentPicker fields.