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

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

      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.

            fred Frédéric Massart
            jaseeey Jason Ilicic
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Jason Fowler Jason Fowler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.