Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-11547

Canot import database presets

    XMLWordPrintable

    Details

    • 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.

        Attachments

          Activity

            People

            Assignee:
            stronk7 Eloy Lafuente (stronk7)
            Reporter:
            mknierim Markus Knierim
            Tester:
            Eloy Lafuente (stronk7)
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              8/Apr/08