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

Course sections are not ordered by section (sort order) when selecting activities on the import screen

    XMLWordPrintable

Details

    • PostgreSQL
    • MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_22_STABLE, MOODLE_23_STABLE
    • Hide

      1/ Login to Moodle.
      2/ Create 2 new test courses.
      3/ Modify the first course and add in a few activities, and then shuffle the course sections using the drag and drop function.
      4/ Enter the second course, and import the contents from the first course.
      5/ Verify the display order of the course sections on the activity selection screen in the import process is displaying in the exact order as displayed on the first course.

      Show
      1/ Login to Moodle. 2/ Create 2 new test courses. 3/ Modify the first course and add in a few activities, and then shuffle the course sections using the drag and drop function. 4/ Enter the second course, and import the contents from the first course. 5/ Verify the display order of the course sections on the activity selection screen in the import process is displaying in the exact order as displayed on the first course.

    Description

      When performing an import/restore, the course sections are displayed in any random order returned by the database, rather than being displayed in their actual sort order based on the course configuration/section order. This does not happen in all cases and is dependent on how the database orders the search and output of the results, so may not be replicable in many cases.

      Adding the sort parameter to the database function call appears to solve this problem.

      Attachments

        Activity

          People

            fred Frédéric Massart
            jaseeey Jason Ilicic
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Jason Fowler Jason Fowler
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Sep/12