Send mail to users of a particular role boolean logic with several roles selected

Events happening in the community are now at Drupal community events on www.drupal.org.
bartl's picture

I need to send a mail to users of particular roles. The intention is, just as in the permission system, that if a user has any role from the list of the selected roles, that he gets the mail. The mail is not sent. It only works if I select only one role.

It looks to me like the logic to combine the roles is AND, thus, that only users that have all roles get the mail, and there are no such users. Instead, I need OR. There seems to be no way in the rules interface to select that.

Suggestions?

Comments

What's your triggering event?

salientknight's picture

What's your triggering event? And what version are you using?

I'm using Drupal 7, and Rules 7.x-2.0-rc1

bartl's picture

I'm using Drupal 7, and Rules 7.x-2.0-rc1 (I'll get to upgrading that, Real Soon Now). The triggering event is when a profile is created, from the module Profile2.

Thanks to event logging, I know that the event is triggered, and even this action is invoked, it just doesn't do anything. It works if I deselect all roles but one.

(For testing I added the alternative event "when an existing profile is saved", so I don't have to create a new user with a new profile every time.)

nbcc

tnesrikanth's picture

vnbvmnbvmnb

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: