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

Course page: Text greyed when conditional activity available

    Details

    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-40320-master

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  12 Vote for this issue
                  Watchers:
                  19 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    9/Sep/13