Fixes the property map, adds notes, updates tests data to include larger paragraphs

This commit is contained in:
Shannon
2020-08-14 00:45:58 +10:00
parent 7d689a6e11
commit c619e5a96a
3 changed files with 14 additions and 4 deletions

View File

@@ -86,9 +86,9 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
// if there is an alias map for this property then use that instead of the real property alias
// (used to save memory, the mapped alias is normally a single char or at least a smaller string)
if (map.Value.MappedAlias != null && !map.Key.Equals(map.Value.MappedAlias)
&& nestedData.PropertyData.Remove(map.Key)
&& nestedData.PropertyData.TryGetValue(map.Key, out PropertyData[] properties2))
{
nestedData.PropertyData.Remove(map.Key);
nestedData.PropertyData.Add(map.Value.MappedAlias, properties2);
}
}