Skip to content

Commit 143864b

Browse files
Merge pull request #1354 from ekapic/fix/1093-suggest-unavailable-terms
Suggested term filtering condition fixed (issue #1093)
2 parents de09dc1 + fe0def1 commit 143864b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/controls/taxonomyPicker/TermPicker.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ export default class TermPicker extends React.Component<ITermPickerProps, ITermP
154154
if (disableChildrenOfDisabledParents) {
155155
// Check if terms were already retrieved
156156
if (!this.allTerms) {
157-
this.allTerms = await this.termsService.getAllTerms(this.props.termPickerHostProps.termsetNameOrID);
157+
this.allTerms = await this.termsService.getAllTerms(this.props.termPickerHostProps.termsetNameOrID,
158+
this.props.termPickerHostProps.hideDeprecatedTags,
159+
this.props.termPickerHostProps.hideTagsNotAvailableForTagging);
158160
}
159161

160162
// Check if there are terms retrieved

src/services/SPTermStorePickerService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ export default class SPTermStorePickerService {
389389
anchorId: this.props.anchorId ? this.props.anchorId : EmptyGuid,
390390
isSpanTermStores: false,
391391
isSpanTermSets: false,
392-
isIncludeUnavailable: this.props.hideTagsNotAvailableForTagging === true,
393-
isIncludeDeprecated: this.props.hideDeprecatedTags === true,
392+
isIncludeUnavailable: this.props.hideTagsNotAvailableForTagging !== true,
393+
isIncludeDeprecated: this.props.hideDeprecatedTags !== true,
394394
isAddTerms: false,
395395
isIncludePathData: false,
396396
excludeKeyword: false,

0 commit comments

Comments
 (0)