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

Course page: Text greyed when conditional activity available

    XMLWordPrintable

Details

    • MOODLE_25_STABLE
    • MOODLE_25_STABLE, MOODLE_26_STABLE
    • MDL-40320-master
    • Hide
      1. In advanced features, turn on completion and conditional availability.
      2. Create new course with default settings except turn on completion.
      3. Create a new Page in the course with default settings, manual completion.
      4. Create a new Label with default settings except under 'Restrict access' set it to require the Page to be complete. (Leave it as 'show greyed out' when not available.)
      5. Log in as an enrolled student
      6. Make sure the label is greyed out and there is text that says it isn't available until you complete the page.
      7. Mark Page as completed
      8. Make sure the label is no longer greyed out and the 'not available yet' text disappears.
      Show
      In advanced features, turn on completion and conditional availability. Create new course with default settings except turn on completion. Create a new Page in the course with default settings, manual completion. Create a new Label with default settings except under 'Restrict access' set it to require the Page to be complete. (Leave it as 'show greyed out' when not available.) Log in as an enrolled student Make sure the label is greyed out and there is text that says it isn't available until you complete the page. Mark Page as completed Make sure the label is no longer greyed out and the 'not available yet' text disappears.

    Description

      Clearer steps to reproduce (from clean MOODLE_25_STABLE install):

      0. In advanced features, turn on completion and conditional availability.
      1. Create new course with default settings except turn on completion.
      2. Create a new Page in the course with default settings.
      3. Create a new Label with default settings except under 'Restrict access' set it to require the Page to be complete. (Leave it as 'show greyed out' when not available.)
      4. Enrol a test account as student in course.
      5. Log out.
      6. Log in using the username/password of the test account.

      EXPECTED:

      The label is greyed out and there is text that says it isn't available until you complete the page.

      7. Click the button next to the Page.

      EXPECTED:

      The label is no longer greyed out and the 'not available yet' text disappears.

      BEFORE FIX:

      The text disappears as expected, but the label remains greyed out.

      Attachments

        Issue Links

          Activity

            People

              quen Sam Marshall
              asads Andrew Sadler
              Mary Evans Mary Evans
              Marina Glancy Marina Glancy
              Rajesh Taneja Rajesh Taneja
              Sam Marshall, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              12 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Sep/13