From 0954cf290b0fa68f2b8bdfe316b17ef20aba3542 Mon Sep 17 00:00:00 2001 From: Tony Valle <79843014+superskip@users.noreply.github.com> Date: Tue, 2 May 2023 13:19:39 +0200 Subject: [PATCH] fix: [DHIS2-14104] make sure deselected checkboxes evaluate `d2:hasValue` to `false` (#1692) --- components/dataentry/compare-form.html | 3 +++ components/dataentry/inner-form.html | 1 + components/dataentry/table-entry-form.html | 2 ++ 3 files changed, 6 insertions(+) diff --git a/components/dataentry/compare-form.html b/components/dataentry/compare-form.html index b65bd0cf6..67dcf44b5 100644 --- a/components/dataentry/compare-form.html +++ b/components/dataentry/compare-form.html @@ -200,6 +200,7 @@ @@ -244,6 +245,7 @@ @@ -372,6 +374,7 @@ diff --git a/components/dataentry/inner-form.html b/components/dataentry/inner-form.html index f59470c7c..4915da05b 100644 --- a/components/dataentry/inner-form.html +++ b/components/dataentry/inner-form.html @@ -290,6 +290,7 @@ {{'enrollment'| translate}} class="form-control" ng-class='getInputNotifcationClass(prStDe.dataElement.id,false)' ng-model="selectedOrgUnit.closedStatus || eventRow[prStDe.dataElement.id]" + ng-false-value="null" ng-required={{prStDe.compulsory}} ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}" ng-dblclick="$event.stopPropagation();" @@ -368,6 +369,7 @@