Merge remote-tracking branch 'origin/v10/dev' into v11/dev
# Conflicts: # build/azure-pipelines.yml # src/Umbraco.Web.BackOffice/Controllers/ContentController.cs # src/Umbraco.Web.UI.Client/package-lock.json # src/Umbraco.Web.UI.Client/package.json # tests/Umbraco.Tests.AcceptanceTest/package-lock.json
This commit is contained in:
@@ -736,16 +736,22 @@ public class ContentStore
|
||||
{
|
||||
EnsureLocked();
|
||||
|
||||
IPublishedContentType?[] contentTypes = _contentTypesById
|
||||
IPublishedContentType[] contentTypes = _contentTypesById
|
||||
.Where(kvp =>
|
||||
kvp.Value.Value != null &&
|
||||
kvp.Value.Value.PropertyTypes.Any(p => dataTypeIds.Contains(p.DataType.Id)))
|
||||
.Select(kvp => kvp.Value.Value)
|
||||
.Select(x => getContentType(x!.Id))
|
||||
.Where(x => x != null) // poof, gone, very unlikely and probably an anomaly
|
||||
.WhereNotNull() // poof, gone, very unlikely and probably an anomaly
|
||||
.ToArray();
|
||||
|
||||
var contentTypeIdsA = contentTypes.Select(x => x!.Id).ToArray();
|
||||
// all content types that are affected by this data type update must be updated
|
||||
foreach (IPublishedContentType contentType in contentTypes)
|
||||
{
|
||||
SetContentTypeLocked(contentType);
|
||||
}
|
||||
|
||||
var contentTypeIdsA = contentTypes.Select(x => x.Id).ToArray();
|
||||
var contentTypeNodes = new Dictionary<int, List<int>>();
|
||||
foreach (var id in contentTypeIdsA)
|
||||
{
|
||||
@@ -761,7 +767,7 @@ public class ContentStore
|
||||
}
|
||||
}
|
||||
|
||||
foreach (IPublishedContentType contentType in contentTypes.WhereNotNull())
|
||||
foreach (IPublishedContentType contentType in contentTypes)
|
||||
{
|
||||
// again, weird situation
|
||||
if (contentTypeNodes.ContainsKey(contentType.Id) == false)
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Umbraco.CSharpTest.Net.Collections" Version="14.906.1403.1085" />
|
||||
<PackageReference Include="MessagePack" Version="2.5.129" />
|
||||
<PackageReference Include="K4os.Compression.LZ4" Version="1.3.6" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="Umbraco.CSharpTest.Net.Collections" />
|
||||
<PackageReference Include="MessagePack" />
|
||||
<PackageReference Include="K4os.Compression.LZ4" />
|
||||
<PackageReference Include="Newtonsoft.Json"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user