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

Delete module activity does not delete competency evidence associated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.4
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
    • Affected Branches:
      MOODLE_34_STABLE

      Description

      Create an activity and link competency to it, and define a rule Upon activity completion: Complete the competency
      if this rule is triggered, it mark competency completed.
      Now we delete the activity from a course.
      Go to Competency breakdown and click on the rating. You will get an error that the record does not exist in the cotext table.

      Because the exporter try to get the context of the evidence (not found beacause the activity deleted)

      Solution:

      • clean evidences linked to activity when deleted
      • when getting evidence in the sql join with context table to make sure it exists

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              taboubii Issam Taboubi
              Participants:
              Component watchers:
              Damyon Wiese, Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: