diff --git a/OpenXMLTemplates/ControlReplacers/RepeatingControlReplacer.cs b/OpenXMLTemplates/ControlReplacers/RepeatingControlReplacer.cs index bd7b06d..4a5a9c7 100644 --- a/OpenXMLTemplates/ControlReplacers/RepeatingControlReplacer.cs +++ b/OpenXMLTemplates/ControlReplacers/RepeatingControlReplacer.cs @@ -80,8 +80,8 @@ protected override string ProcessControl(string variableIdentifier, IVariableSou //Support old styled documents var innerRep1 = new InnerRepeatingVariableControlReplacer(); var innerRep2 = new InnerRepeatingConditionalRemoveControlReplacer(); - innerRep1.ReplaceAll(ex.Controls, ex.VariableSource); - innerRep2.ReplaceAll(ex.Controls, ex.VariableSource); + innerRep1.ReplaceAll(ex.Controls, innerSource); + innerRep2.ReplaceAll(ex.Controls, innerSource); break; }