Compare commits

...
Author SHA1 Message Date
Nikolaj 66434bf230 Bump version 2023-04-27 10:04:55 +02:00
Mole dc836b67f0 Set culture variation when getting property types for indexing (#14167) 2023-04-27 10:03:59 +02:00
2 changed files with 18 additions and 1 deletions
@@ -40,6 +40,23 @@ internal abstract class NestedPropertyIndexValueFactoryBase<TSerialized, TItem>
contentType
.PropertyGroups
.SelectMany(x => x.PropertyTypes!)
.Select(propertyType =>
{
// We want to ensure that the nested properties are set vary by culture if the parent is
// This is because it's perfectly valid to have a nested property type that's set to invariant even if the parent varies.
// For instance in a block list, the list it self can vary, but the elements can be invariant, at the same time.
if (culture is not null)
{
propertyType.Variations |= ContentVariation.Culture;
}
if (segment is not null)
{
propertyType.Variations |= ContentVariation.Segment;
}
return propertyType;
})
.ToDictionary(x => x.Alias);
result.AddRange(GetNestedResults(
+1 -1
View File
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "11.3.0",
"version": "11.3.1",
"assemblyVersion": {
"precision": "build"
},