diff --git a/src/Umbraco.Infrastructure/CompatibilitySuppressions.xml b/src/Umbraco.Infrastructure/CompatibilitySuppressions.xml
index 653a936b61..795c678729 100644
--- a/src/Umbraco.Infrastructure/CompatibilitySuppressions.xml
+++ b/src/Umbraco.Infrastructure/CompatibilitySuppressions.xml
@@ -29,13 +29,6 @@
lib/net7.0/Umbraco.Infrastructure.dll
true
-
- CP0002
- M:Umbraco.Cms.Core.PropertyEditors.ValueConverters.BlockGridPropertyValueConverter.#ctor(Umbraco.Cms.Core.Logging.IProfilingLogger,Umbraco.Cms.Core.PropertyEditors.ValueConverters.BlockEditorConverter,Umbraco.Cms.Core.Serialization.IJsonSerializer)
- lib/net7.0/Umbraco.Infrastructure.dll
- lib/net7.0/Umbraco.Infrastructure.dll
- true
-
CP0002
M:Umbraco.Cms.Infrastructure.Migrations.IMigrationContext.AddPostMigration``1
@@ -78,4 +71,4 @@
lib/net7.0/Umbraco.Infrastructure.dll
true
-
\ No newline at end of file
+
diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockGridPropertyValueConverter.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockGridPropertyValueConverter.cs
index a68eebf0bc..e1c5a2052c 100644
--- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockGridPropertyValueConverter.cs
+++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockGridPropertyValueConverter.cs
@@ -1,7 +1,9 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
+using Microsoft.Extensions.DependencyInjection;
using Umbraco.Cms.Core.DeliveryApi;
+using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Core.Logging;
using Umbraco.Cms.Core.Models.Blocks;
using Umbraco.Cms.Core.Models.DeliveryApi;
@@ -20,9 +22,20 @@ namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters
private readonly IJsonSerializer _jsonSerializer;
private readonly IApiElementBuilder _apiElementBuilder;
+ [Obsolete("Please use non-obsolete cconstrutor. This will be removed in Umbraco 14.")]
+ public BlockGridPropertyValueConverter(
+ IProfilingLogger proflog,
+ BlockEditorConverter blockConverter,
+ IJsonSerializer jsonSerializer)
+ : this(proflog, blockConverter, jsonSerializer, StaticServiceProvider.Instance.GetRequiredService())
+ {
+
+ }
+
// Niels, Change: I would love if this could be general, so we don't need a specific one for each block property editor....
public BlockGridPropertyValueConverter(
- IProfilingLogger proflog, BlockEditorConverter blockConverter,
+ IProfilingLogger proflog,
+ BlockEditorConverter blockConverter,
IJsonSerializer jsonSerializer,
IApiElementBuilder apiElementBuilder)
: base(blockConverter)