From ef20f228ec56ee001e3ef06be5037a9b3baf565c Mon Sep 17 00:00:00 2001 From: Morten Christensen Date: Tue, 5 Feb 2013 09:13:21 -0100 Subject: [PATCH] Correcting issue related to MediaXmlTest, which was fixed in v6. --- src/Umbraco.Core/Models/ContentExtensions.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Umbraco.Core/Models/ContentExtensions.cs b/src/Umbraco.Core/Models/ContentExtensions.cs index fa7d0e5d52..35fc7382ad 100644 --- a/src/Umbraco.Core/Models/ContentExtensions.cs +++ b/src/Umbraco.Core/Models/ContentExtensions.cs @@ -347,7 +347,6 @@ namespace Umbraco.Core.Models var x = content.ToXml(nodeName); x.Add(new XAttribute("nodeType", content.ContentType.Id)); - //TODO see below, do we have the same issues with GetXxxProfile threading problems? x.Add(new XAttribute("creatorName", content.GetCreatorProfile().Name)); x.Add(new XAttribute("writerName", content.GetWriterProfile().Name)); x.Add(new XAttribute("writerID", content.WriterId)); @@ -372,9 +371,7 @@ namespace Umbraco.Core.Models var x = media.ToXml(nodeName); x.Add(new XAttribute("nodeType", media.ContentType.Id)); - //TODO Using the GetCreatorProfile extension method seems to be causing threading/connection problems because of the way the repo is used - //x.Add(new XAttribute("writerName", media.GetCreatorProfile().Name)); - x.Add(new XAttribute("writerName", string.Empty)); + x.Add(new XAttribute("writerName", media.GetCreatorProfile().Name)); x.Add(new XAttribute("writerID", media.CreatorId)); x.Add(new XAttribute("version", media.Version)); x.Add(new XAttribute("template", 0));