UserId zero means null users, not super
This commit is contained in:
@@ -47,9 +47,9 @@ namespace Umbraco.Core.Services
|
||||
xml.Add(new XAttribute("nodeType", content.ContentType.Id));
|
||||
xml.Add(new XAttribute("nodeTypeAlias", content.ContentType.Alias));
|
||||
|
||||
xml.Add(new XAttribute("creatorName", content.GetCreatorProfile(userService).Name));
|
||||
xml.Add(new XAttribute("creatorName", content.GetCreatorProfile(userService)?.Name ?? "??"));
|
||||
//xml.Add(new XAttribute("creatorID", content.CreatorId));
|
||||
xml.Add(new XAttribute("writerName", content.GetWriterProfile(userService).Name));
|
||||
xml.Add(new XAttribute("writerName", content.GetWriterProfile(userService)?.Name ?? "??"));
|
||||
xml.Add(new XAttribute("writerID", content.WriterId));
|
||||
|
||||
xml.Add(new XAttribute("template", content.Template?.Id.ToString(CultureInfo.InvariantCulture) ?? "0"));
|
||||
|
||||
@@ -325,8 +325,8 @@ namespace Umbraco.Examine
|
||||
{"urlName", new object[] {urlValue}},
|
||||
{"path", new object[] {c.Path}},
|
||||
{"nodeType", new object[] {c.ContentType.Id}},
|
||||
{"creatorName", new object[] {c.GetCreatorProfile(UserService).Name}},
|
||||
{"writerName", new object[] {c.GetWriterProfile(UserService).Name}},
|
||||
{"creatorName", new object[] {c.GetCreatorProfile(UserService)?.Name ?? "??"}},
|
||||
{"writerName", new object[] {c.GetWriterProfile(UserService)?.Name ?? "??"}},
|
||||
{"writerID", new object[] {c.WriterId}},
|
||||
{"template", new object[] {c.Template?.Id ?? 0}}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user