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