I need to setup two rules that add a user role to the requestor user when a relationship has been approved and to remove that user rile when a relationship has been removed. I have been able to build the rule to add a user role with the following:
Events: A user relationship has been approved
Conditions: Relationship has type
Actions: Add user role

However, when I create the second rule using the event: A user relationship has been removed, I am unable to setup the condition as needed for 'Relationship has type'. While I am able to select the condition and the list of current relationhsip types do show in the configuration, I am unable to set the RELATIONSHIP in the data selector properly.

When using the event 'A user relationship has been approved', I have options such as requestee, requestor, relationship; but when using the 'A user relationship has been removed' none of these options exist and the only data selections available are site:current-user.

It looks as though the data relationships in the event and/or condition creation is set properly for the 'approved' event but not for the 'removed' event. I have done some troubleshooting but have not been successful in identifying how to resolve this issue.

Comments

mxwitkowski’s picture

This looks to be a duplicate issue that has already been resolved: https://drupal.org/node/1487758

Can the patch in the referenced issue #1487758 be committed to dev?