@hmcts/ccd-case-ui-toolkit 7.3.65 → 7.3.67-exui-3839-rc-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12108,13 +12108,15 @@ class CaseEditPageComponent {
|
|
|
12108
12108
|
return result;
|
|
12109
12109
|
}
|
|
12110
12110
|
buildCaseEventData(fromPreviousPage) {
|
|
12111
|
-
|
|
12111
|
+
// EXUI-3839 - we need to get the raw value of the form because otherwise disabled fields
|
|
12112
|
+
// (e.g. read only fields or fields disabled due to show condition) will not be included
|
|
12113
|
+
const formRawValue = this.editForm.getRawValue();
|
|
12112
12114
|
// Get the CaseEventData for the current page.
|
|
12113
12115
|
const pageFields = this.currentPage.case_fields;
|
|
12114
|
-
const pageEventData = this.getFilteredCaseEventData(pageFields,
|
|
12116
|
+
const pageEventData = this.getFilteredCaseEventData(pageFields, formRawValue, true);
|
|
12115
12117
|
// Get the CaseEventData for the entire form (all pages).
|
|
12116
12118
|
const allCaseFields = this.getCaseFieldsFromCurrentAndPreviousPages();
|
|
12117
|
-
const formEventData = this.getFilteredCaseEventData(allCaseFields,
|
|
12119
|
+
const formEventData = this.getFilteredCaseEventData(allCaseFields, formRawValue, false, true, fromPreviousPage);
|
|
12118
12120
|
// Now here's the key thing - the pageEventData has a property called `event_data` and
|
|
12119
12121
|
// we need THAT to be the value of the entire form: `formEventData.data`.
|
|
12120
12122
|
pageEventData.event_data = formEventData.data;
|