This project is read-only.

Projector Module not Filtering Properly

Topics: Customizing Orchard
Apr 12, 2012 at 4:54 AM

So I've added a query to add a filter with a specific content type and another filter for a specific property. The property happens to be an enumeration value (ie: Colors such as Blue, Red, Green, Yellow, Black, White). I tried stating that I wanted any content type of color and then specifically where the Color.Value contains any 'Blue Green Black'. This returned 0 results even though there were 4.  The content type filter seems to work if I delete the enumeration value filter. However, if I delete the content type filter and ad the enumeration value filter back in, it does not work. It seems to dislike the enumeration value filter. Even if I say that Color.Value is equal to 'Red', I get 0 results.

Is this a known projector bug?

Apr 12, 2012 at 11:08 AM

I tried the same scenario and it works.

Do you have other filters with this one ? 

My test work with an additional content type filter.

Apr 12, 2012 at 7:05 PM

Nope. Are you sure you are using an Enumeration value?

Apr 12, 2012 at 8:46 PM

It's working now. I deleted the query and readded it and it's now working. Not sure how/why, but it is.