-
Bug
-
Resolution: Fixed
-
Minor
-
2.2.4
-
MOODLE_22_STABLE
-
MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
MDL-34507-master -
-
Easy
-
This appears to be caused by the changes made in MDL-30008.
Any repository which has supported_filetypes other than '*' will not be available in the upload filepicker.
Steps to replicate:
1. Add more repositories to your site, eg. googledocs, youtube
2. Attempt to upload a file.
Expected: Option to use these repositories for file uploads.
Result: These repositories will be missing
3. In lib/form/filemanager.php:127
- $accepted_types = (array) $this->_options['accepted_types'];
+ $accepted_types = $this->_options['accepted_types'];
4. Attempt to upload a file again. The missing repositories will be available. But the supported_filetypes filter will not be used.
I think that the code in repository/lib.php:845 need to be changed to fix this.
- is a regression caused by
-
MDL-30008 accepted_types ignored by filemanager element
- Closed