Horde: Make it possible to clear issue owner

#jira none
#rnx

[CL 16941275 by Josh Engebretson in ue5-main branch]
This commit is contained in:
Josh Engebretson
2021-07-23 16:04:18 -04:00
parent fe25a97441
commit cd1dd69fa8
2 changed files with 2 additions and 2 deletions

View File

@@ -521,7 +521,7 @@ namespace HordeServer.Api
public string? Summary { get; set; }
/// <summary>
/// New user id for owner of the issue
/// New user id for owner of the issue, can be cleared by passing empty string
/// </summary>
public string? OwnerId { get; set; }

View File

@@ -399,7 +399,7 @@ namespace HordeServer.Controllers
ObjectId? NewOwnerId = null;
if (Request.OwnerId != null)
{
NewOwnerId = new ObjectId(Request.OwnerId);
NewOwnerId = Request.OwnerId.Length == 0 ? ObjectId.Empty : new ObjectId(Request.OwnerId);
}
ObjectId? NewNominatedById = null;