Skip to content
Snippets Groups Projects
Commit 48b36799 authored by Karen Stevenson's avatar Karen Stevenson
Browse files

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

parent cfd82b30
Branches
Tags
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment