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

Conditional activity status not updated in navigation block until after page refresh

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: Conditional activities
    • Labels:
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      ==Steps==
      1. Set up the following (as 'page' resources)

      • page1 (complete when viewed by student)
      • page2 (visible when page1 is complete)
      • page3 (no special conditions)

      2. Log in as a student
      3. click on the 'page1' link in the course, then look at the navigation block.

      ==Expected result==
      Navigation block looks like this:

      • page1
      • page2
      • page3
        (page2 should be visible at this point as the condition for it being available (page1 being viewed) has been met)

      ==Actual result==
      Navigation block looks like this:

      • page1
      • page3
        (page2 not shown)

      Clicking on page3, clears out the 'get_fast_modinfo' cache and correctly updates the navigation block to this:

      • page1
      • page2
      • page3

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                quen Sam Marshall
                Reporter:
                davosmith Davo Smith
                Participants:
                Component watchers:
                Sam Marshall, Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: