From 7a2f5525146028c63669bb3c847b6ad1fb1cafa2 Mon Sep 17 00:00:00 2001 From: Albert Gasset Date: Mon, 4 Feb 2019 10:53:42 +0100 Subject: [PATCH] MOBILE-2825 assign: Delete temporary files after saving submission --- src/addon/mod/assign/pages/edit/edit.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/addon/mod/assign/pages/edit/edit.ts b/src/addon/mod/assign/pages/edit/edit.ts index e98d6abf0..3f2ba6c32 100644 --- a/src/addon/mod/assign/pages/edit/edit.ts +++ b/src/addon/mod/assign/pages/edit/edit.ts @@ -303,6 +303,9 @@ export class AddonModAssignEditPage implements OnInit, OnDestroy { } return promise.then(() => { + // Clear temporary data from plugins. + return this.assignHelper.clearSubmissionPluginTmpData(this.assign, this.userSubmission, inputData); + }).then(() => { // Submission saved, trigger event. const params = { assignmentId: this.assign.id,