Reviewed & tested by the community
Project:
Profile Migrate
Version:
6.x-6.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2009 at 13:00 UTC
Updated:
28 Nov 2010 at 18:51 UTC
Profile Migrate migrates the selection values from profiles into a text field with a widget: options_select. This is not correct, it should be optionswidgets_select.
The profile data is migrated correctly, however since options_select is not a valid widget, this kind of values are hidden in nodes.
This patch fix the problem and also add a missing $ y removes a trailing space.
Comments
Comment #1
kewlguy commentedsubsribing
Comment #2
rtackett commentedI have verified dagmar's patch does indeed work. I had the same issue when I migrated a select list field.
Please commit.
Comment #3
nhck commented+1
Without the patch Profile migration wouldn't have been possible.
Comment #4
izmeez commentedsubscribing
Comment #5
jwilson3I'm confirming that I ran into this very bug and solved it completely independently of this issue thread with exactly the same code, and came to the issue queue to create a new issue and supply a patch (#874226: select lists dont appear after conversion) when I found this thread.... doh.
Comment #6
igorik commented@jrguitar21
in this patch is not this part of this patch
@@ -238,8 +238,8 @@ function profile_migrate_fields($type_na
case 'selection':
- $field['widget']['module'] = 'text';
+ $field['widget']['module'] = 'optionwidgets';
is it ok (is it not necessary) or it make sense and it could be in included in this patch?
Comment #7
igorik commentedthese two lines from this patch seems to be the same, is it error in the patch?
- if ($cat_count > 0 && !array_key_exists($type_name, $types)) {
+ if ($cat_count > 0 && !array_key_exists($type_name, $types)) {