putyourlightson / craft-campaign

Send and manage email campaigns, contacts and mailing lists in Craft CMS.
https://putyourlightson.com/plugins/campaign
Other
63 stars 25 forks source link

Ability to select multiple Categories in condition builder #393

Closed adrianjean closed 1 year ago

adrianjean commented 1 year ago

Setup:

Issue:

bencroker commented 1 year ago

This is a restriction currently placed on the condition builder by Craft, so there’s not much we can do about it. See the discussion at https://github.com/craftcms/cms/discussions/12538.

adrianjean commented 1 year ago

Ah — Ok maybe as a workaround I'll use a Multi Select field instead of a Categories field — seems to work.

Edit: Using Multi Select field is an option, however it returns results as if the operator between terms was "OR" not "AND" — so selecting "Donors" as well as "Volunteers" in a Multi Select Field, returns all contacts with either term, not just those with only both terms.

bencroker commented 1 year ago

Using Multi Select field is an option, however it returns results as if the operator between terms was "OR" not "AND"

Again, Craft core is defining this behaviour, not the Campaign plugin.