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

Setting a conditional release to a section causes the blocks to disappear

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Go to the QA site (with patch enabled). Or setup your own course with at least 1 graded item.
      2. Ensure that enableavailability is enabled
      3. Login as teacher
      4. Go to "Activity examples" test site
      5. In course settings, set "Course layout" to "Show one section per page"
      6. Turn editing on
      7. Click on the "Assignments" section so that only that section is showing.
      8. Edit section "Assignments" by clicking on the gear icon under the section name.
      9. Click "Expand all", then in the "Restrict access' section I added the following 2 grade restrictions:
        1. "Lesson 1 - Basic parts" must be >= 85%
        2. "Lesson 2 - Question types" must be >= 85%
      10. Clicked "Save changes"
      11. Verified that blocks do display for the teacher with either editing turned on or off.
      Show
      Go to the QA site (with patch enabled). Or setup your own course with at least 1 graded item. Ensure that enableavailability is enabled Login as teacher Go to "Activity examples" test site In course settings, set "Course layout" to "Show one section per page" Turn editing on Click on the "Assignments" section so that only that section is showing. Edit section "Assignments" by clicking on the gear icon under the section name. Click "Expand all", then in the "Restrict access' section I added the following 2 grade restrictions: "Lesson 1 - Basic parts" must be >= 85% "Lesson 2 - Question types" must be >= 85% Clicked "Save changes" Verified that blocks do display for the teacher with either editing turned on or off.
    • Workaround:
      Hide

      Do not use grade conditional restriction for sections with more than 1 other conditional restriction.

      Show
      Do not use grade conditional restriction for sections with more than 1 other conditional restriction.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull Master Branch:

      Description

      Steps to reproduce:

      1. Login as teacher
      2. Go to "Activity examples" test site
      3. In course settings, set "Course layout" to "Show one section per page"
      4. Turn editing on
      5. Click on the "Assignments" section so that only that section is showing.
      6. Edit section "Assignments" by clicking on the gear icon under the section name.
      7. Click "Expand all", then in the "Restrict access' section I added the following 2 grade restrictions:
        1. "Lesson 1 - Basic parts" must be >= 85%
        2. "Lesson 2 - Question types" must be >= 85%
      8. Clicked "Save changes"
      9. Verified that blocks do not display for the teacher with either editing turned on or off.

      Note that blocks do display for students.

      Also, note that conditional activities does not cause the blocks to disappear if you do not include a grade restriction. Also, the conditional restriction doesn't cause the bug if there is only 1 restriction added.

        Attachments

          Activity

            People

            Assignee:
            rex Rex Lorenzo
            Reporter:
            rex Rex Lorenzo
            Peer reviewer:
            Sam Marshall
            Integrator:
            Sam Hemelryk
            Tester:
            Zachary Durber
            Participants:
            Component watchers:
            Sam Marshall, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              10/Nov/14