From 882f866a5ff0c7721d673d8a3bf377989d2070b7 Mon Sep 17 00:00:00 2001 From: Per Ploug Date: Tue, 2 Jun 2015 22:03:30 +0200 Subject: [PATCH] Removes singleton reference --- src/Umbraco.Web/Models/Mapping/ContentTypeModelMapper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Models/Mapping/ContentTypeModelMapper.cs b/src/Umbraco.Web/Models/Mapping/ContentTypeModelMapper.cs index 5b6432dc4b..d6d8712c05 100644 --- a/src/Umbraco.Web/Models/Mapping/ContentTypeModelMapper.cs +++ b/src/Umbraco.Web/Models/Mapping/ContentTypeModelMapper.cs @@ -69,7 +69,7 @@ namespace Umbraco.Web.Models.Mapping dest.RemoveContentType(rem); foreach(var a in add){ - var add_ct = ApplicationContext.Current.Services.ContentTypeService.GetContentType(a); + var add_ct = applicationContext.Services.ContentTypeService.GetContentType(a); if(add_ct != null) dest.AddContentType(add_ct); }