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

Topic links active with restricted conditional topics

    Details

    • Workaround:
      Hide
      1. Log in as admin
      2. Navigate to Site admin > Advanced features
      3. Check "Enable conditional" (accessenableavailability)
      4. Navigate to a course
      5. Navigate to Course admin > Edit settings
      6. Set Format = 'Topics format' and Course layout = 'Show one section per page'
      7. Save settings
      8. Edit a section (topic) somewhere in the middle of the course [SECTION A]
      9. Under "Restrict access" set the section to be dependant on another activity to be completed (add a 'Activity completion condition')
      10. Still under "Restrict access" set "Before section can be accessed" to "Show section greyed out..."
      11. Edit another section [SECTION B] and set another restriction (maybe a date in future)
      12. Set "Before section can be accessed" to "Hide section entirely" for this section
      13. Log in as student
      14. If viewing a single section, click "Return to main course page"
      15. Note that the Navigation shows the correct list of sections (with restricted SECTION A and not SECTION B)
      16. Note that the SECTION A is shown and the topic heading is an active link
      17. Click the link - verify that the restriction information is shown, and that the section is not displayed
      18. Verify SECTION B is not displayed in the listing
      19. Go to a visible section and try to get to SECTION B using the navigation on the section (< > arrows)
      20. Verify that you can not get to the section
      21. Try to get to restricted SECTION B by manually changing the url
      22. Verify the section throws error message
      Show
      Log in as admin Navigate to Site admin > Advanced features Check "Enable conditional" (accessenableavailability) Navigate to a course Navigate to Course admin > Edit settings Set Format = 'Topics format' and Course layout = 'Show one section per page' Save settings Edit a section (topic) somewhere in the middle of the course [SECTION A] Under "Restrict access" set the section to be dependant on another activity to be completed (add a 'Activity completion condition') Still under "Restrict access" set "Before section can be accessed" to "Show section greyed out..." Edit another section [SECTION B] and set another restriction (maybe a date in future) Set "Before section can be accessed" to "Hide section entirely" for this section Log in as student If viewing a single section, click "Return to main course page" Note that the Navigation shows the correct list of sections (with restricted SECTION A and not SECTION B) Note that the SECTION A is shown and the topic heading is an active link Click the link - verify that the restriction information is shown, and that the section is not displayed Verify SECTION B is not displayed in the listing Go to a visible section and try to get to SECTION B using the navigation on the section (< > arrows) Verify that you can not get to the section Try to get to restricted SECTION B by manually changing the url Verify the section throws error message
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE

      Description

      I am using Moodle 2.3.1(Build: 20120706)

      In separate page per topic format:

      When I set a topic to be greyed out until XX activity in another topic is complete, the topic heading link is still active (not greyed out) and if clicked returns a message: Sorry, but you do not currently have permissions to do that (View hidden sections)

      Shouldn't the topic heading link be grey and inactive when it is set to be unavailable until XX activity is complete.

      This is confusing for students and I have subsequently withdrawn use of this feature until fixed. The scroll of death remains...

      Also, in single page per topic format:

      When I set a topic to be greyed out until XX activity in another topic is complete, the topic heading remains but all activities disappear (not greyed out).

      Shouldn't all of the activities be shown in the topic but simply greyed out if that topic is set to be unavailable until...

      Thanks

      Replication steps:

      1. Log in as admin
      2. Navigate to Site admin > Advanced features
      3. Check "Enable conditional" (accessenableavailability)
      4. Navigate to a course
      5. Navigate to Course admin > Edit settings
      6. Set Format = 'Topics format' and Course layout = 'Show one section per page'
      7. Save settings
      8. Edit a section (topic) somewhere in the middle of the course
      9. Under "Restrict access" set it to be dependant on another activity and set "Before section can be accessed" to "Show section greyed out..."
      10. Log in as student
      11. If viewing a single section, click "Return to main course page"
      12. Note that the Navigation shows the correct list of sections (without restricted section)
      13. Note that the restricted section is shown and the topic heading is an active link
      14. Click the link - an error is shown
      15. Click back
      16. Click on the section before the grouping restricted section
      17. Note that you can see a link to the grouping restricted section
      18. Click on the link - an error is shown

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    10/Sep/12