From 63ffdf2519131dfb5d7de8ebc4ddbd294ff30fec Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Wed, 22 Jan 2020 14:18:09 +0100 Subject: [PATCH] AW-803 Pass array (take 2). --- projects/common/src/fm/services/codelistitem.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/common/src/fm/services/codelistitem.service.ts b/projects/common/src/fm/services/codelistitem.service.ts index 00cabc1..b4b4cd8 100644 --- a/projects/common/src/fm/services/codelistitem.service.ts +++ b/projects/common/src/fm/services/codelistitem.service.ts @@ -17,7 +17,9 @@ export class CodeListItemService { getCodeListItems(codelist: string[], codegroup?: string, dataFilter?: any): Observable { var params = new HttpParams(); - params = params.append("cl", codelist); + for (const cl of codelist) { + params = params.append('cl', cl); + } if (codegroup) params = params.append("g", codegroup); if (dataFilter) params = params.append("df", dataFilter); return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/codelistitems/`, { params: params });