hi.
I am using Profile2 and Profile2 Registration Path to distinguish between new user registering as client or as business. The business profile contains 4 additional fields (name, VAT, CoC and type of business)
The "type of business" field has 3 options: either A, B or C.
I want to compare this data in a rule with the following settings:
Event: After saving a new user account
Condition: Data comparison
The data to compare is: account:profile-company:field-typeofbusiness
The operator is: equals
The data value is: a
Action: Add user role
When testing this feature by creating a new business user account with type of business "A", i can see that the rule is starting it's evaluation. But as soon as the data comparison starts, the follow error occurs
Unable to get the data value for the variable or parameter data. Error: Unable to get the data property field_typeofbusiness as the parent data structure is not set
Unable to evaluate condition data_is.
Is this a bug?
Thanks, Léon
Comments
Comment #0.0
elsteff1385 commentedtypo
Comment #1
xandermar commentedSame issue here