Hi!
I created a custom checkbox field in the registration form. Then I created a Rule event which verify if the checkbox is checked, then the user will have a specific role. Everytime I try to create a user the log throw me this error:
Rules evaluation log
0 ms Reacting on event After saving a new user account.
11.382 ms Evaluating rule User Roles.
18.916 ms Unable to get the data property field_castle as the parent data structure is not set.
18.975 ms Unable to execute condition data_is.
19.009 ms AND evaluated to FALSE.
19.074 ms Finished reacting on event After saving a new user account.
Actually I tried to do a simple text validation with a custom field and I'm also getting this error. I'm using this modules:
Profile2 7.x-1.0-beta2
Entity 7.x-1.0-beta8
Rules 7.x-2.0-beta1
I'm not completly sure if this is a Profile2 or a Entity issue, but I post it.... I'm also attaching my custom rule here.
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| user-roles.txt | 419 bytes | tangamampilia |
Comments
Comment #1
tangamampilia commentedOk.. I'm still looking for this issue. As I can see, for a weird reason the Rules is executing before the Profile2.. so no entity data is available. I did a simple test using a Custom PHP.
¿Sugestions? Thanks!
Comment #2
fagothe profile of the user is saved after the user account creation - this is by design and cannot be changed. You could use the according profile events though.