Skip to content

Commit

Permalink
Fixed an issue where nested controls were incorrectly assigned the en…
Browse files Browse the repository at this point in the history
…tire VariableSource instead of the required nested inner source.
  • Loading branch information
SergeyFM committed May 10, 2024
1 parent 0e898b0 commit 07169a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenXMLTemplates/ControlReplacers/RepeatingControlReplacer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ protected override string ProcessControl(string variableIdentifier, IVariableSou
//Support old styled documents
var innerRep1 = new InnerRepeatingVariableControlReplacer();

Check warning on line 81 in OpenXMLTemplates/ControlReplacers/RepeatingControlReplacer.cs

View workflow job for this annotation

GitHub Actions / Build and test

'InnerRepeatingVariableControlReplacer' is obsolete: 'Use normal variable tags instead'

Check warning on line 81 in OpenXMLTemplates/ControlReplacers/RepeatingControlReplacer.cs

View workflow job for this annotation

GitHub Actions / Build and test

'InnerRepeatingVariableControlReplacer' is obsolete: 'Use normal variable tags instead'
var innerRep2 = new InnerRepeatingConditionalRemoveControlReplacer();

Check warning on line 82 in OpenXMLTemplates/ControlReplacers/RepeatingControlReplacer.cs

View workflow job for this annotation

GitHub Actions / Build and test

'InnerRepeatingConditionalRemoveControlReplacer' is obsolete: 'Use normal conditional remove tags instead'

Check warning on line 82 in OpenXMLTemplates/ControlReplacers/RepeatingControlReplacer.cs

View workflow job for this annotation

GitHub Actions / Build and test

'InnerRepeatingConditionalRemoveControlReplacer' is obsolete: 'Use normal conditional remove tags instead'
innerRep1.ReplaceAll(ex.Controls, ex.VariableSource);
innerRep2.ReplaceAll(ex.Controls, ex.VariableSource);
innerRep1.ReplaceAll(ex.Controls, innerSource);
innerRep2.ReplaceAll(ex.Controls, innerSource);

break;
}
Expand Down

0 comments on commit 07169a2

Please sign in to comment.