mirror of
https://github.com/moodle/moodle.git
synced 2025-04-07 17:33:18 +02:00
Merge branch 'MDL-83661-main' of https://github.com/ferranrecio/moodle
This commit is contained in:
commit
2dd2c3db17
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -345,10 +345,11 @@ class HandlerManager {
|
||||
let hasDefault = false;
|
||||
fileHandlers.forEach((handler, index) => {
|
||||
const isDefault = (defaultModule == handler.module);
|
||||
const optionNumber = index + 1;
|
||||
data.handlers.push({
|
||||
...handler,
|
||||
selected: isDefault,
|
||||
labelid: `fileuploader_${data.uploadid}`,
|
||||
labelid: `fileuploader_${data.uploadid}_${optionNumber}`,
|
||||
value: index,
|
||||
});
|
||||
hasDefault = hasDefault || isDefault;
|
||||
|
Loading…
x
Reference in New Issue
Block a user