Commit 6bb3481a authored by colan's avatar colan

Issue #1887996 by jenlampton, colan: Check for key before using it.

parent 899e2a09
......@@ -32,8 +32,10 @@ function file_content_migrate_field_alter(&$field_value, $instance_value) {
$field_value['module'] = 'file';
$field_value['type'] = 'file';
// Some settings have changed names.
$field_value['settings']['display_field'] = $field_value['settings']['list_field'];
unset($field_value['settings']['list_field']);
if (array_key_exists('list_field', $field_value['settings'])) {
$field_value['settings']['display_field'] = $field_value['settings']['list_field'];
unset($field_value['settings']['list_field']);
}
$field_value['settings']['display_default'] = $field_value['settings']['list_default'];
unset($field_value['settings']['list_default']);
}
......
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