Commit 44851e00 authored by 13rac1's avatar 13rac1 Committed by colan
Browse files

Issue #1463602 by eosrei: Check that the full display exists.

parent be105797
......@@ -227,8 +227,8 @@ function _content_migrate_get_instance_values($bundle = NULL, $field_name = NULL
$new_displays[$new_context] = $settings;
// Additionally, set 'default' view mode to the settings used by
// 'full'.
$new_displays['default'] = $new_displays['full'];
// 'full'. Set to array() if 'full' doesn't exist.
$new_displays['default'] = isset($new_displays['full']) ? $new_displays['full'] : array();
$instance_value['display'] = $new_displays;
// Warn about missing or invalid widgets.
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