[835] Auto-save in new Item Submission form breaks the form

Section formId added to the section state.
Error filtering during the parsing of the submission response.
This commit is contained in:
Alessandro Martelli
2020-11-20 15:02:56 +01:00
parent 9f33855a0f
commit 875a43a14e
10 changed files with 130 additions and 28 deletions

View File

@@ -15,6 +15,7 @@ import {
InertSectionErrorsAction,
RemoveSectionErrorsAction,
SectionStatusChangeAction,
SetSectionFormId,
UpdateSectionDataAction
} from '../objects/submission-objects.actions';
import {
@@ -135,6 +136,18 @@ export class SectionsService {
this.store.dispatch(new RemoveSectionErrorsAction(submissionId, sectionId));
}
/**
* Dispatch a new [SetSectionFormId]
* The submission id
* @param sectionId
* The section id
* @param formId
* The form id
*/
public dispatchSetSectionFormId(submissionId, sectionId, formId) {
this.store.dispatch(new SetSectionFormId(submissionId, sectionId, formId));
}
/**
* Return the data object for the specified section
*