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.

CommentFileSizeAuthor
profile_migrate.patch1.79 KBdagmar

Comments

karens’s picture

Thanks 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.

karens’s picture

Status: Needs review » Fixed

And committed! Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.