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

Conditional section availability restore - only restores the first Activity completion condition

    Details

    • Testing Instructions:
      Hide
      1. Create new course
      2. Add two labels with Completion tracking set to 'Students can manually mark the activity as complete"
      3. Edit summary of of first course section
        • go to 'Restrict access'
          • set first 'Activity completion condition' select label 1 'must be marked complete'
          • set second 'Activity completion condition' select label 2 'must be marked complete'
        • Set 'Before section can be accessed' to 'Hide section entirely'
      4. switch role to 'Student' and test. First course section should be hidden until you mark Label 1 & 2 as complete.
      5. Backup course
      6. Restore backup as a new course
      7. Switch role to student again and try ticking/unticking the two boxes

      The hidden section should appear only when BOTH boxes are ticked.

      Show
      Create new course Add two labels with Completion tracking set to 'Students can manually mark the activity as complete" Edit summary of of first course section go to 'Restrict access' set first 'Activity completion condition' select label 1 'must be marked complete' set second 'Activity completion condition' select label 2 'must be marked complete' Set 'Before section can be accessed' to 'Hide section entirely' switch role to 'Student' and test. First course section should be hidden until you mark Label 1 & 2 as complete. Backup course Restore backup as a new course Switch role to student again and try ticking/unticking the two boxes The hidden section should appear only when BOTH boxes are ticked.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:
      MDL-37078-master

      Description

      1. Create new course
      2. Add two labels with Completion tracking set to 'Students can manually mark the activity as complete"
      3. Edit summary of of first course section
        • go to 'Restrict access'
          • set first 'Activity completion condition' select label 1 'must be marked complete'
          • set second 'Activity completion condition' select label 2 'must be marked complete'
        • Set 'Before section can be accessed' to 'Hide section entirely'
      4. switch role to 'Student' and test. First course section should be hidden until you mark Label 1 & 2 as complete.
      5. Backup course
      6. Restore backup as a new course
      7. Go to first section and it will only have restored the first activity completion condition, ignoring the second condition in the restore

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jan/13