Merge pull request #2760 from umbraco/temp8-variants

Variants Refactoring [v8]
This commit is contained in:
Shannon Deminick
2018-07-10 13:05:13 +10:00
committed by GitHub
89 changed files with 2250 additions and 2060 deletions

View File

@@ -265,7 +265,7 @@ namespace Umbraco.Web.Trees
// for those items that DO support cultures, we need to get the proper name, IF it exists
// otherwise, invariant is fine
if (docEntity.Variations.Has(Core.Models.ContentVariation.CultureNeutral) &&
if (docEntity.Variations.VariesByCulture() &&
docEntity.CultureNames.TryGetValue(culture, out var name) &&
!string.IsNullOrWhiteSpace(name))
{