Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.2, 1.9
-
Component/s: Database activity module
-
Labels:None
-
Affected Branches:MOODLE_18_STABLE, MOODLE_19_STABLE
-
Fixed Branches:MOODLE_18_STABLE, MOODLE_19_STABLE
Description
I'm trying to import a database preset which I previously exported from another course, but whenever I click on "Choose" file (next to "Import from zip file") I get an error message: "That's an invalid course id".
I looked at the HTML source code of the page calling the file selection dialog, and obviously the wrong course id is passed to files/index.php (e.g, id=2 instead of 330). In fact, id=2 is hardcoded (!!!) in /moodle/mod/data/preset.php (1.20.2.3, line 330) instead of passing on the current course id ![]()
The same bug is in HEAD as well.
We are experiencing this problem on a client's site - they are running the very latest 1.8.2+, updated from CVS just a few minutes ago.
We tested their preset on our own 1.8.2+ site (which has slightly older code) and we get an "Unable to unzip file" error...
Very odd.
Sean K