Skip to content

Commit

Permalink
Merge pull request #951 from KoenZomers/FixAvailableForTaggingNotAppl…
Browse files Browse the repository at this point in the history
…iedOnReusedTerms

Fixing IsAvailableForTagging not being set correctly on a reused term
  • Loading branch information
gautamdsheth authored Dec 28, 2023
2 parents 9eb35ef + 9265cb5 commit a4bb520
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 a4bb520

Please sign in to comment.