From ded1c0b79f12fafeaa726a148ecf794dae7d62d3 Mon Sep 17 00:00:00 2001 From: Matthew Care Date: Tue, 26 Oct 2021 13:57:53 +0100 Subject: [PATCH] Fix DI Integration tests failing due to multiple ctors. Marking correct one for DI usage --- src/Umbraco.Web.BackOffice/Controllers/TemplateController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Umbraco.Web.BackOffice/Controllers/TemplateController.cs b/src/Umbraco.Web.BackOffice/Controllers/TemplateController.cs index 8cef90cb575a..23c955219aee 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/TemplateController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/TemplateController.cs @@ -28,6 +28,7 @@ public class TemplateController : BackOfficeNotificationsController private readonly IShortStringHelper _shortStringHelper; private readonly IDefaultViewContentProvider _defaultViewContentProvider; + [ActivatorUtilitiesConstructor] public TemplateController( IFileService fileService, IUmbracoMapper umbracoMapper,