Clone node for new associations

This commit is contained in:
Manuel Thalmann 2023-07-26 15:32:33 +02:00
parent 7ae8d7f2c6
commit b63c801566

View file

@ -21,7 +21,7 @@ $null = New-Module {
if ($candidates.Count -eq 1) {
$association = $candidates[0];
} else {
$association = ($associations.SelectNodes([AppAssociations]::associationSelector) | Select-Object -Last 1)[0];
$association = ($associations.SelectNodes([AppAssociations]::associationSelector) | Select-Object -Last 1)[0].CloneNode();
$association.Identifier = $identifier;
$association = $associations.AppendChild($association);
}