U4-11289 Tracking the currently selected language in the main tree

This commit is contained in:
Shannon
2018-05-01 18:17:07 +10:00
parent 171a82e233
commit be4ea93d12
20 changed files with 130 additions and 92 deletions

View File

@@ -47,7 +47,7 @@ namespace Umbraco.Web.Trees
/// <inheritdoc />
protected override TreeNode GetSingleTreeNode(IEntitySlim entity, string parentId, FormDataCollection queryStrings)
{
var langId = queryStrings["languageId"].TryConvertTo<int?>();
var langId = queryStrings["culture"].TryConvertTo<string>();
var allowedUserOptions = GetAllowedUserMenuItemsForNode(entity);
if (CanUserAccessNode(entity, allowedUserOptions, langId.Success ? langId.Result : null))