Commit 48b36799 authored by KarenS's avatar KarenS
Browse files

Issue #1154508, committed wrong fix, fix it right this time.

parent cfd82b30
......@@ -22,14 +22,12 @@ function content_migrate_filefield_field_alter(&$field_value, $instance_value) {
$field_value['type'] = 'image';
// default_image is now a field setting.
$field_value['settings']['default_image'] = $instance_value['widget']['settings']['default_image'];
break;
}
// There are a bunch of custom filefield widgets. If they at least start the widget name with 'filefield' this will work.
if (substr($instance_value['widget']['type'], 0, 9) == 'filefield') {
// Module names and types changed.
$field_value['module'] = 'file';
$field_value['type'] = 'file';
break;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment