Commit 10c6574e authored by fago's avatar fago
Browse files

follow-up #1446674: fixed notices during field creation.

parent 9fb0bbc2
......@@ -1330,7 +1330,8 @@ function field_collection_i18n_string_list_field_alter(&$properties, $type, $ins
if ($type == 'field_instance') {
$field = field_info_field($instance['field_name']);
if ($field['type'] == 'field_collection') {
if ($field['type'] == 'field_collection' && !empty($instance['display'])) {
foreach ($instance['display'] as $view_mode => $display) {
if ($display['type'] != 'field_collection_fields') {
$display['settings'] += array('edit' => 'edit', 'delete' => 'delete', 'add' => 'add');
......
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