From 093c26c7f3140a5bdc34637878b71af1014b9892 Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Tue, 12 Nov 2024 10:12:12 +0100 Subject: [PATCH] AW-6466 Fix optional boolean value to overrule default. --- projects/common/src/fm/services/item.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/common/src/fm/services/item.service.ts b/projects/common/src/fm/services/item.service.ts index 692ee07..015930e 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -97,7 +97,7 @@ export class ItemService { if (sourceTask) params = params.append("sourceTask", sourceTask); if(skip) params = params.append("skip", skip); if(take) params = params.append("take", take); - if(exactMatchStartOrEndDate) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate); + if(exactMatchStartOrEndDate !== undefined) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate); return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/`, { params: params }); } @@ -109,7 +109,7 @@ export class ItemService { if (startDate) params = params.append("sDate", startDate.toISOString()); if (endDate) params = params.append("eDate", endDate.toISOString()); if(indexed) params = params.append("ind",indexed?"true":"false"); - if(exactMatchStartOrEndDate) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate); + if(exactMatchStartOrEndDate !== undefined) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate); return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/count`, { params: params }); } @@ -127,7 +127,7 @@ export class ItemService { params = params.append("deep", deep.toString()); if (startDate) params = params.append("sDate", startDate.toISOString()); if (endDate) params = params.append("eDate", endDate.toISOString()); - if(exactMatchStartOrEndDate) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate); + if(exactMatchStartOrEndDate !== undefined) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate); if(skip) params = params.append("skip", skip); if(take) params = params.append("take", take); @@ -145,7 +145,7 @@ export class ItemService { } if (startDate) params = params.append("sDate", startDate.toISOString()); if (endDate) params = params.append("eDate", endDate.toISOString()); - if(exactMatchStartOrEndDate) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate); + if(exactMatchStartOrEndDate !== undefined) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate); return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children/count`, { params: params }); }