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

We need to add a new optional sectionid parameter to refer to course sections and not be dependent on section changes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide

      Test 1

      1. Goto course>Edit settings> set 'course layout' to 'show one section per page'
      2. view any course page and make a note of the course id
      3. view the "course_sections" table in the database and filter records corresponding to the courseid above
      4. Try visiting moodle/course/view.php?id=2&sectionid=x
        Where x is any value of the 'id' column from the records listed in step 3
      5. Make sure you are taken to a section page corresponding to that sectionid and the correct node is highlighted in the navigation
      6. Goto course home page and move the section around.
      7. Repeat step 4 and 5 with the section just moved.

      Test 2 (Testing for regressions)

      1. click on any section from the course page and make sure you are taken to the correct section page
      2. Click the next and previous sections links and make sure they work fine
      3. Click on any section link from navigation and make sure you are taken to the correct section page
      Show
      Test 1 Goto course>Edit settings> set 'course layout' to 'show one section per page' view any course page and make a note of the course id view the "course_sections" table in the database and filter records corresponding to the courseid above Try visiting moodle/course/view.php?id=2&sectionid=x Where x is any value of the 'id' column from the records listed in step 3 Make sure you are taken to a section page corresponding to that sectionid and the correct node is highlighted in the navigation Goto course home page and move the section around. Repeat step 4 and 5 with the section just moved. Test 2 (Testing for regressions) click on any section from the course page and make sure you are taken to the correct section page Click the next and previous sections links and make sure they work fine Click on any section link from navigation and make sure you are taken to the correct section page
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:
      MDL-33369-master

      Description

      The problem is that in multiple places we now try and link to course sections and the link is broken if the section is moved.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Jun/12