@hmcts/ccd-case-ui-toolkit 7.3.56-exui-4298 → 7.3.57-raw-form-data
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.
|
@@ -11912,13 +11912,15 @@ class CaseEditPageComponent {
|
|
|
11912
11912
|
return result;
|
|
11913
11913
|
}
|
|
11914
11914
|
buildCaseEventData(fromPreviousPage) {
|
|
11915
|
-
|
|
11915
|
+
// EXUI-3839 - we need to get the raw value of the form because otherwise disabled fields
|
|
11916
|
+
// (e.g. read only fields or fields disabled due to show condition) will not be included
|
|
11917
|
+
const formRawValue = this.editForm.getRawValue();
|
|
11916
11918
|
// Get the CaseEventData for the current page.
|
|
11917
11919
|
const pageFields = this.currentPage.case_fields;
|
|
11918
|
-
const pageEventData = this.getFilteredCaseEventData(pageFields,
|
|
11920
|
+
const pageEventData = this.getFilteredCaseEventData(pageFields, formRawValue, true);
|
|
11919
11921
|
// Get the CaseEventData for the entire form (all pages).
|
|
11920
11922
|
const allCaseFields = this.getCaseFieldsFromCurrentAndPreviousPages();
|
|
11921
|
-
const formEventData = this.getFilteredCaseEventData(allCaseFields,
|
|
11923
|
+
const formEventData = this.getFilteredCaseEventData(allCaseFields, formRawValue, false, true, fromPreviousPage);
|
|
11922
11924
|
// Now here's the key thing - the pageEventData has a property called `event_data` and
|
|
11923
11925
|
// we need THAT to be the value of the entire form: `formEventData.data`.
|
|
11924
11926
|
pageEventData.event_data = formEventData.data;
|