- issue of saving files for amendement - added form autosaving;
This commit is contained in:
@@ -397,6 +397,8 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
AmendmentsService.getSoccorsoById(getCallback, errGetCallback, [['id', soccorsoEntityId]]);
|
AmendmentsService.getSoccorsoById(getCallback, errGetCallback, [['id', soccorsoEntityId]]);
|
||||||
}, [amendmentId]);
|
}, [amendmentId]);
|
||||||
|
|
||||||
|
console.log('formInitialData', formInitialData)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="appPage">
|
<div className="appPage">
|
||||||
<div className="appPage__pageHeader">
|
<div className="appPage__pageHeader">
|
||||||
@@ -519,6 +521,7 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
disabled={data.status === 'CLOSE'}
|
disabled={data.status === 'CLOSE'}
|
||||||
type="fileupload"
|
type="fileupload"
|
||||||
setDataFn={setValue}
|
setDataFn={setValue}
|
||||||
|
saveFormCallback={doUpdateAmendment}
|
||||||
fieldName={o.fieldId}
|
fieldName={o.fieldId}
|
||||||
label={o.label}
|
label={o.label}
|
||||||
control={control}
|
control={control}
|
||||||
|
|||||||
Reference in New Issue
Block a user