From 44aac09d33fa98889be95f6c96880c997721bdfe Mon Sep 17 00:00:00 2001 From: Richard Treier Date: Thu, 26 Sep 2024 10:55:03 +0200 Subject: [PATCH] fix: date to datetime conversion with operators LT and GT (#851) --- CHANGELOG.md | 2 ++ .../shared/business/policy-editor/model/policy-form-adapter.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6621ac40..daf82589 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,8 @@ the detailed section referring to by linking pull requests or issues. definition in a single call ([#841](https://github.com/sovity/edc-ui/issues/841)) - Fixed config not being applied properly after a version upgrade +- Fixed Date to DateTime conversion issues when using operators `LT` and `GT` + ([#846](https://github.com/sovity/edc-ui/issues/846)) ### Deployment Migration Notes diff --git a/src/app/shared/business/policy-editor/model/policy-form-adapter.ts b/src/app/shared/business/policy-editor/model/policy-form-adapter.ts index 2841dce5..b1a9d727 100644 --- a/src/app/shared/business/policy-editor/model/policy-form-adapter.ts +++ b/src/app/shared/business/policy-editor/model/policy-form-adapter.ts @@ -121,7 +121,7 @@ export const jsonAdapter: PolicyFormAdapter = { }; const isUpperBound = (operator: PolicyOperatorConfig) => - operator.id === 'LT' || operator.id === 'LEQ'; + operator.id === 'GT' || operator.id === 'LEQ'; /** * Helper function for reducing mental complexity of mapping code: