Cleanup variants dirty tracking

This commit is contained in:
Stephan
2018-10-23 15:04:41 +02:00
parent 9699e6cb71
commit 9320c1a061
30 changed files with 335 additions and 306 deletions

View File

@@ -132,7 +132,7 @@ namespace Umbraco.Web.Models.Mapping
// if we don't have a name for a culture, it means the culture is not available, and
// hey we should probably not be mapping it, but it's too late, return a fallback name
return source.CultureNames.TryGetValue(culture, out var name) && !name.Name.IsNullOrWhiteSpace() ? name.Name : $"(({source.Name}))";
return source.CultureInfos.TryGetValue(culture, out var name) && !name.Name.IsNullOrWhiteSpace() ? name.Name : $"(({source.Name}))";
}
}
}