UpdateFields has no effect on nested IF-mergefields

I’m using nested IF-MergeFields in a document which contain Mail Merge Fields. Although I’m calling Document.UpdateFields before saving the document, the MergeFields are not updated when opening the document.
After updating all fields in the document within Word, everything is shown as expected.
I’ve attached the template I’m using. Below is the code I’m using to execute the MailMerge.

// Open document
var doc = new Document("IfMergeFields.docx");
// Execute MailMerge
doc.MailMerge.Execute(new string[]
{
    "Count"
}, new object[]
{
    2
});
// Update fields in document
doc.UpdateFields();
// ...save it
doc.Save("IfMergeFields_out.docx");

Hello

Thank you for reporting this problem to us. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.
Best regards,

The issues you have found earlier (filed as 16052) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.