From f057ceb8800d185c2ac18e7f877e1667feae0a0f Mon Sep 17 00:00:00 2001 From: Elvaron Date: Tue, 27 Jun 2023 12:09:50 +0200 Subject: [PATCH] UpdateObject not changing Custom Fields in Version objects #301 (#323) --- src/redmine-net-api/Types/Version.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/redmine-net-api/Types/Version.cs b/src/redmine-net-api/Types/Version.cs index b7c8b8d9..e094ee27 100644 --- a/src/redmine-net-api/Types/Version.cs +++ b/src/redmine-net-api/Types/Version.cs @@ -145,6 +145,10 @@ public override void WriteXml(XmlWriter writer) writer.WriteElementString(RedmineKeys.SHARING, Sharing.ToString().ToLowerInv()); writer.WriteDateOrEmpty(RedmineKeys.DUE_DATE, DueDate); writer.WriteElementString(RedmineKeys.DESCRIPTION, Description); + if (CustomFields != null) + { + writer.WriteArray(RedmineKeys.CUSTOM_FIELDS, CustomFields); + } } #endregion @@ -272,4 +276,4 @@ public override int GetHashCode() CustomFields={CustomFields.Dump()}]"; } -} \ No newline at end of file +}