From b899805ec9fe7acb9d49c6726d781981ff1663d5 Mon Sep 17 00:00:00 2001 From: Morten Christensen Date: Thu, 15 Aug 2013 10:08:59 +0200 Subject: [PATCH] Correcting issue introduced in d3b69e04e1e5f5620e18c805d5cf0b265f140f96 where the returned IProfile would contain the Username and not the Name. This will have changed the Creator and Writer name in the xml cache to be the Login instead of the Name of the user, so for those that use these fields its important to republish to update the xml cache. Fixes U4-2628 creatorName and writerName should use username - not loginname. Also verified through file history back to v4. --- src/Umbraco.Core/Services/UserService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/Services/UserService.cs b/src/Umbraco.Core/Services/UserService.cs index e451d3aa05..5845c0faa0 100644 --- a/src/Umbraco.Core/Services/UserService.cs +++ b/src/Umbraco.Core/Services/UserService.cs @@ -43,13 +43,13 @@ namespace Umbraco.Core.Services public IProfile GetProfileById(int id) { var user = GetUserById(id); - return new Profile(user.Id, user.Username); + return new Profile(user.Id, user.Name); } public IProfile GetProfileByUserName(string username) { var user = GetUserByUserName(username); - return new Profile(user.Id, user.Username); + return new Profile(user.Id, user.Name); } public IUser GetUserByUserName(string username)