MOBILE-2825 assign: Delete temporary files after saving submission

main
Albert Gasset 2019-02-04 10:53:42 +01:00
parent 6d55c50b01
commit 7a2f552514
1 changed files with 3 additions and 0 deletions

View File

@ -303,6 +303,9 @@ export class AddonModAssignEditPage implements OnInit, OnDestroy {
} }
return promise.then(() => { return promise.then(() => {
// Clear temporary data from plugins.
return this.assignHelper.clearSubmissionPluginTmpData(this.assign, this.userSubmission, inputData);
}).then(() => {
// Submission saved, trigger event. // Submission saved, trigger event.
const params = { const params = {
assignmentId: this.assign.id, assignmentId: this.assign.id,