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

Error when toggling activity manual completion state

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: Activity completion
    • Labels:
    • Affected Branches:
      MOODLE_33_STABLE

      Description

      Replication steps

      1. Add two activities (A, B) with manual completion
      2. Set the activity B to be unavailable until activity A is complete
      3. Set activity B to be visible, even when unavailable
      4. Login as student
      5. Visit the course and mark B as complete (A should still be incomplete)

      Actual

      • An error shows up

      Expected

      • The button to mark the activity B as complete should not be displayed as the user doesn't have access to it.

        Attachments

        1. activities_restricted.png
          activities_restricted.png
          13 kB
        2. after.png
          after.png
          72 kB
        3. before.png
          before.png
          11 kB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                fred Frédéric Massart
                Participants:
                Component watchers:
                Sam Marshall, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: