Closed (fixed)
Project:
Profile Migrate
Version:
6.x-6.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2009 at 17:40 UTC
Updated:
20 Dec 2009 at 12:40 UTC
I have used this module to migrate 2000+ user profiles from a site. I have to say THANKS for this great module.
While a was using this module, I have discovered some inconsistencies in textarea fields, and checkbox.
I'm attaching the patch that I used to import correctly this kind of data.
But I'm not sure if
- $field['allowed_values'] = $old_field->options;
+ $field['allowed_values'] = '0|--
+1|' . $old_field->title;
Is the best way to include a \n to separate the available values for a checkbox.
| Comment | File | Size | Author |
|---|---|---|---|
| profile_migrate.patch | 1.79 KB | dagmar |
Comments
Comment #1
karens commentedThanks for this! I was hoping to get some feedback from people using fields I wasn't using. We add a line break with ."\n". You have to wrap it with double-quotes for it to work.
I didn't realize the checkboxes didn't put the value in $old_field->options, but if not, your way makes more sense. Since you were able to migrate that data successfully and I didn't have that kind of data to test, I'm inclined to commit your patch and see how it works for others.
Comment #2
karens commentedAnd committed! Thanks!