From 91d12635cd8a356ea9f23766948b975b161dfe09 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Wed, 5 Sep 2018 15:24:03 +0200 Subject: [PATCH] always create new nodes based on the language set in the tree --- .../src/views/content/content.create.controller.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/content/content.create.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/content.create.controller.js index 6970a7ba36..fe9ae4ebf9 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/content.create.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/content/content.create.controller.js @@ -13,6 +13,8 @@ function contentCreateController($scope, $location, navigationService, blueprintConfig) { + + var mainCulture = $routeParams.mculture ? $routeParams.mculture : null; function initialize() { contentTypeResource.getAllowedTypes($scope.currentNode.id).then(function (data) { @@ -32,7 +34,10 @@ function contentCreateController($scope, $location .path("/content/content/edit/" + $scope.currentNode.id) .search("doctype", docType.alias) - .search("create", "true"); + .search("create", "true") + /* when we create a new node we want to make sure it uses the same + language as what is selected in the tree */ + .search("cculture", mainCulture); close(); }