Skip to content

Commit

Permalink
Merge pull request #1704 from lafe/MissingTaxonomyPickerSuggestions-1688
Browse files Browse the repository at this point in the history
Use stringMatchOption instead of deprecated stringMatchId #1688
  • Loading branch information
joelfmrodrigues authored Jan 30, 2024
2 parents d58bb93 + 6882aa0 commit 618e21d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/SPTaxonomyService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ export class SPTaxonomyService {
}
}

public async searchTerm(termSetId: Guid, label: string, languageTag: string, parentTermId?: Guid, allowSelectingChildren = true, stringMatchId: string = '0', pageSize: number = 50): Promise<ITermInfo[]> {
public async searchTerm(termSetId: Guid, label: string, languageTag: string, parentTermId?: Guid, allowSelectingChildren = true, stringMatchOption: string = 'StartsWith', pageSize: number = 50): Promise<ITermInfo[]> {
try {
const query = [
`label='${label}'`,
`setId='${termSetId}'`,
`languageTag='${languageTag}'`,
`stringMatchId='${stringMatchId}'`
`stringMatchOption='${stringMatchOption}'`
];

if(parentTermId !== Guid.empty) {
Expand Down

0 comments on commit 618e21d

Please sign in to comment.