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

Boost theme and restricted sections - Unnecessary scrolls and redirection to see the conditions.

    • MOODLE_404_STABLE, MOODLE_500_STABLE
    • MDL-85536-section-redirect
    • Hide
      1. Login as a course editor
      2. Create a new course
      3. Pick a course section and add a resource under it
      4. Edit the same section and under Restrict access add a restriction for a date in the future, and save
      5. Confirm you see this restriction eg 'Available from 5 June 2032'
      6. Navigate to that section on the course index
      7. Confirm you see the restriction message
      8. Note the url looks something like /course/section.php?id=4
      9. Switch role to Student
      10. Confirm the url has not changed and you are not redirected to the course page
      11. Confirm you can see the restriction message
      12. Confirm you can not see the resource inside the section
      Show
      Login as a course editor Create a new course Pick a course section and add a resource under it Edit the same section and under Restrict access add a restriction for a date in the future, and save Confirm you see this restriction eg 'Available from 5 June 2032' Navigate to that section on the course index Confirm you see the restriction message Note the url looks something like /course/section.php?id=4 Switch role to Student Confirm the url has not changed and you are not redirected to the course page Confirm you can see the restriction message Confirm you can not see the resource inside the section
    • Hide

      Fails against automated checks.

      Checked MDL-85536 using repository: https://github.com/brendanheywood/moodle

      Should these errors be fixed?

      Built on: Thu Jun 12 08:18:49 UTC 2025

      Show
      Fails against automated checks. Checked MDL-85536 using repository: https://github.com/brendanheywood/moodle Testing instructions are missing. main (0 errors / 0 warnings) [branch: MDL-85536-section-redirect | CI Job ] Should these errors be fixed? Built on: Thu Jun 12 08:18:49 UTC 2025

      It is possible (and quite common practice) to set restrict access conditions on a section - eg a student needs to complete a Commencement quiz, before they can gain access to the assessments section.

       

      In Boost, when you click on the restricted section in the Left-hand navigation, you are shown that section and the restriction conditions are clearly visible on screen.

       

      As a student, you do not get taken to the restricted section, but are instead scrolled to the top of the course homepage.   You see the message "[Name of section] is unavailable", but no explanation of why, or what conditions you need to meet.

       

      If the restricted section happens to be low down on the Table-of-contents you may then need to scroll through many screens, to actually find the restricted section and view the restriction conditions.

      Students should be 'anchored' to the relevant section.

      STEPS TO REPRODUCE

      1. Develop a course with lots of sections and activities (or choose one that already has these)
      2. Create an activity in an early section.   Set appropriate conditions (eg if it is a Quiz, they receive a grade)
      3. Edit a section that is very low down in the table-of-contents
      4. Apply restriction conditions (eg that the quiz in sTeap 2 is marked as complete)
      5. Login as a teacher.   
      6. Click on the restricted section and note that you are taken straight to the section, where the restriction conditions are clearly visible
      7. Login as a student
      8. Click on the restricted section.   Note that you are jumped to the top of the homepage and see the message "[Name of section] is unavailable"
      9. Scroll down through what may be many screens to actually see the completion conditions

      PROPOSED SOLUTIONS

      1. Fix the glitchy scrolls on the left-side table-of-contents
      2. Remove the redirection back to the course page
        • When someone clicks the restricted section in the left-side navigation pane, we can let it flow to the section page, showing its requirements while still hides the content

       

        1. 85536 triage - problem behaviour.mov
          11.24 MB
          Andrew Gosali
        2. image-2025-05-27-11-22-45-196.png
          96 kB
          Brendan Heywood

            brendanheywood Brendan Heywood
            birdyoz Greg Bird
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 45 minutes
                45m

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