Skip to content

Commit

Permalink
Fixing IsAvailableForTagging not being set correctly on a reused term…
Browse files Browse the repository at this point in the history
…. It would always use the default of being true, even though the XML import would define it needing to be false. This fixes that it will apply whatever is configured in the XML.
  • Loading branch information
KoenZomers committed Dec 14, 2023
1 parent 173f759 commit 9265cb5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,9 @@ internal static TryReuseTermResult TryReuseTerm(ClientContext context, Model.Ter
createdTerm = ((Term)parent).ReuseTerm(preExistingTerm, false);
}

// Since reuseterm ignores the IsAvailableForTagging flag, we're going to ensure it will be set as it was provided in the model
createdTerm.IsAvailableForTagging = modelTerm.IsAvailableForTagging;

if (modelTerm.IsSourceTerm)
{
preExistingTerm.ReassignSourceTerm(createdTerm);
Expand Down

0 comments on commit 9265cb5

Please sign in to comment.