mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 11:33:04 +00:00
[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:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user