I would like to change the user associated with a registration in Rules but he property is not writeable, any ideas how to achieve this?
I would like to change the user associated with a registration in Rules but he property is not writeable, any ideas how to achieve this?
Comments
Comment #1
andyh69uk commentedError thrown in Rules:-
The selected data property doesn't support writing.
Comment #2
andyh69uk commentedRight OK, so I have worked out that I think we need to hook registration_entity_property_info_alter() but I am not a php programmer and can't really work out how to do it, any help?
Comment #3
dpiRelated: #1664218: Deprecate autoloaded entities for Entity Metadata Wrappers
Comment #4
mradcliffeHere's a rule that I'm currently working on to create accounts for anonymous registrations:
Comment #5
andyh69uk commentedSuperstar, I wasn't saving and unblocking the user. The only problem now is the author ID, the permissions system won't allow editing or viewing of the registration because it must be checking the author ID which doesn't match the UID
Comment #6
andyh69uk commentedI should try things out before posting, I was trying to set the Author ID not the Author, which works just fine
Comment #7
jnorell commentedI'm trying to recreate the rule in #4, but it says
. I can use registration:state, which is just a number .. but I'm curious what I'm missing, or what is different with mradcliffe where that would work? (different version of registration maybe?)
Comment #8
seanberto commentedHey folks,
This ticket is sprawling a bit and asking a lot of different rules integration questions - few of which are providing exports of the rules you are testing, nor a list of the module versions that are being used. Consequently, it's hard to address any remaining issues here.
The ER module is developing a pretty large issue queue. Would someone mind refocusing this ticket or closing it out as fixed? I'm not sure what's left to be addressed.
Comment #9
mradcliffeThe question answered in the OP is fixed in 7.x-1.x branch with #1664218: Deprecate autoloaded entities for Entity Metadata Wrappers.
Comment #10
seanberto commentedThanks!