Replies: 1 comment
-
This would be a breaking change at this point, as it would involve renaming |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The "Related To" condition rule allows the user to choose from any element type via
RelatedToConditionRule
which inherits fromBaseElementSelectConditionRule
.Could a
multiple
property be added toBaseElementSelectConditionRule
and then some of the logic withinRelatedToConditionRule
be moved toBaseElementSelectConditionRule
instead? This would allow easier reuse of the multiple element selection for other purposes other than for relations.For example in Craft Commerce the "Matching Items" for a discount could be moved to use the condition builder allowing things other than categories to be selected, or in a plugin which collects "comments" for any Element, comments could be filtered on the element index based on element.
This would also be relevant to craftcms/commerce#2796
I'm happy to make a PR.
Beta Was this translation helpful? Give feedback.
All reactions