Closed (works as designed)
Project:
Migrate Extras
Version:
7.x-2.3
Component:
Profile2
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2012 at 16:29 UTC
Updated:
10 May 2012 at 21:08 UTC
I have a profile2 with computed field that - under a typical user registration - processes another value from the registration form.
HOWEVER, I need to migrate a bunch of existing users and need to set the computed field's value from a CSV.
PROBLEM: the computed field's code still gets triggered (presumably through a node_save call or whatever magic migrate uses), which in this particular case produces a null value.
WONDERING: can I temporarily replace the computed field's code with something that recognizes the already-set value that migrate is passing? What would that code look like?
Comments
Comment #1
mikeryanIn your migration class, define a complete() method - this runs after the node_save(), so you can fix up anything the node_save() got wrong:
Comment #2
mikeryanNo further response.