Merge branch 'MDL-87113-main' of https://github.com/timhunt/moodle

This commit is contained in:
Huong Nguyen
2026-02-12 08:59:41 +07:00
+2
View File
@@ -1058,6 +1058,8 @@ M.form_dndupload.init = function(Y, options) {
if (result.error) {
self.print_msg(result.error, 'error', result.errorcode);
self.uploadfinished();
// Don't do anything else after reporting the error.
return;
} else {
// Only update the filepicker if there were no errors
if (result.event == 'fileexists') {