diff --git a/core/modules/translation_entity/translation_entity.pages.inc b/core/modules/translation_entity/translation_entity.pages.inc index b7b9a8c..3b8fe78 100644 --- a/core/modules/translation_entity/translation_entity.pages.inc +++ b/core/modules/translation_entity/translation_entity.pages.inc @@ -184,7 +184,7 @@ function translation_entity_add_page(EntityInterface $entity, Language $source = // @todo Exploit the upcoming hook_entity_prepare() when available. translation_entity_prepare_translation($entity, $source, $target); $info = $entity->entityInfo(); - $operation = isset($info['default operation']) ? $info['default operation'] : 'default'; + $operation = isset($info['default_operation']) ? $info['default_operation'] : 'default'; $form_state = entity_form_state_defaults($entity, $operation, $target->langcode); $form_state['translation_entity']['source'] = $source; $form_state['translation_entity']['target'] = $target; diff --git a/core/modules/user/lib/Drupal/user/ProfileTranslationController.php b/core/modules/user/lib/Drupal/user/ProfileTranslationController.php index 91e129b..582644b 100644 --- a/core/modules/user/lib/Drupal/user/ProfileTranslationController.php +++ b/core/modules/user/lib/Drupal/user/ProfileTranslationController.php @@ -36,7 +36,7 @@ function entityFormSave(array $form, array &$form_state) { // We need a redirect here, otherwise we would get an access denied page // since the current URL would be preserved and we would try to add a // translation for a language that already has a translation. - $form_state['redirect'] = $this->getEditPath($entity); + $form_state['redirect'] = $this->getViewPath($entity); } } }