From 6882aa0da4de2125a76232d2554e2fcda3421737 Mon Sep 17 00:00:00 2001 From: Lars Fernhomberg Date: Mon, 13 Nov 2023 14:04:55 +0100 Subject: [PATCH] Use stringMatchOption instead of deprecated stringMatchId #1688 --- src/services/SPTaxonomyService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/SPTaxonomyService.ts b/src/services/SPTaxonomyService.ts index 6092a51aa..060eec26e 100644 --- a/src/services/SPTaxonomyService.ts +++ b/src/services/SPTaxonomyService.ts @@ -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 { + public async searchTerm(termSetId: Guid, label: string, languageTag: string, parentTermId?: Guid, allowSelectingChildren = true, stringMatchOption: string = 'StartsWith', pageSize: number = 50): Promise { try { const query = [ `label='${label}'`, `setId='${termSetId}'`, `languageTag='${languageTag}'`, - `stringMatchId='${stringMatchId}'` + `stringMatchOption='${stringMatchOption}'` ]; if(parentTermId !== Guid.empty) {