MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment
This commit is contained in:
@@ -67,7 +67,7 @@ class mod_folder_mod_form extends moodleform_mod {
|
||||
if ($this->current->instance) {
|
||||
// editing existing instance - copy existing files into draft area
|
||||
$draftitemid = file_get_submitted_draft_itemid('files');
|
||||
file_prepare_draft_area($draftitemid, $this->context->id, 'folder_content', 0, array('subdirs'=>true));
|
||||
file_prepare_draft_area($draftitemid, $this->context->id, 'mod_folder', 'content', 0, array('subdirs'=>true));
|
||||
$default_values['files'] = $draftitemid;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user