Skip to content

Added a filter for projections over StringFields#8213

Merged
sebastienros merged 2 commits into
OrchardCMS:1.10.xfrom
LaserSrl:PR/AdditionalCPFFilter
May 30, 2019
Merged

Added a filter for projections over StringFields#8213
sebastienros merged 2 commits into
OrchardCMS:1.10.xfrom
LaserSrl:PR/AdditionalCPFFilter

Conversation

@MatteoPiovanelli

Copy link
Copy Markdown
Contributor

Added a filter for projections over StringFields that allows returning all items when the provided value is empty.
The goal for this (base on an actual use case we have):
We want to do a "ContainsAny" query over the selected Ids on a ContentPickerField, and return all Items if no "filter" is selected.

@MatteoPiovanelli

Copy link
Copy Markdown
Contributor Author

Note:
This PR was based off the code in the 1.10.3 tag/release

@MatteoPiovanelli

Copy link
Copy Markdown
Contributor Author

Note 2:
We made this because it's a somewhat common thing we need to use, and we often had to work around this (and the projection manager looks to me to be kinda broken when there are more than 1 filter group).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants