-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
3.0.8
-
None
-
MOODLE_30_STABLE
When uploading a file via file picker, the license type drop down box is not populated with the licenses specified in the license table.
Reproduce:
- Add an additional license type to the license table.
- Add this license type to the license.php lang file as well
- Go into a course and add a file resource.
- Check the license type drop down menu in this dialog for the newly added license type. It won't appear there.
I poked around in some of the files and the source of the bug lies in repository/lib.php inside of the initialise_filepicker function. The function is only coded to utilize default licenses. The fix I used was to manually add a select all query for the license table where the enabled flag is 1. From there I manually populated the $licenses array using a foreach loop.
- duplicates
-
MDL-45184 Create user interface to add/delete new licenses
- Closed