Correcting issue introduced in d3b69e04e1 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.
This commit is contained in:
Morten Christensen
2013-08-15 10:08:59 +02:00
parent 766497e355
commit b899805ec9

View File

@@ -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)