diff --git a/core/modules/content_translation/content_translation.admin.inc b/core/modules/content_translation/content_translation.admin.inc index 377c844..81ee6fb 100644 --- a/core/modules/content_translation/content_translation.admin.inc +++ b/core/modules/content_translation/content_translation.admin.inc @@ -34,9 +34,7 @@ function content_translation_field_sync_widget(FieldDefinitionInterface $field_i $default = array(); foreach ($column_groups as $group => $info) { - if (!empty($field_instance->settings[$group . '_field']) || (!empty($translation_sync) && array_key_exists($group, $translation_sync))) { - $options[$group] = $info['label']; - } + $options[$group] = $info['label']; $default[$group] = !empty($info['translatable']) ? $group : FALSE; } @@ -103,7 +101,7 @@ function _content_translation_form_language_content_settings_form_alter(array &$ // entity might have fields and if there are fields to translate. if ($entity_type->isFieldable()) { $fields = $entity_manager->getFieldDefinitions($entity_type_id, $bundle); - if (!empty($fields)) { + if ($fields) { $form['settings'][$entity_type_id][$bundle]['translatable'] = array( '#type' => 'checkbox', '#default_value' => content_translation_enabled($entity_type_id, $bundle),