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 +}