Updates EntityRepository to get the variant names for content items ... for the non-paged query which we can use in the tree

This commit is contained in:
Shannon
2018-04-20 13:12:55 +10:00
parent c84087e96b
commit e9f0e98d2c
5 changed files with 154 additions and 31 deletions

View File

@@ -217,7 +217,7 @@ namespace Umbraco.Web.Trees
// we'll mock using this and it will just be some mock data
foreach(var e in result)
{
if (e.AdditionalData.TryGetValue("VariantNames", out var variantNames))
if (e.AdditionalData.TryGetValue("VariantInfo", out var variantNames))
{
var casted = (IDictionary<int, string>)variantNames;
e.Name = casted[langId.Value];