Permalink
Browse files

MDL-7218 workshop: delete all linked assessments on a submission removal

Credit goes to Stanislav Tsymbalov for spotting this. See the tracker
for more details.
  • Loading branch information...
1 parent 04a2ac0 commit 7f6c2d125d29217675989de8b9c76788dfef51af @mudrd8mz mudrd8mz committed Nov 12, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/workshop/submissions.php
@@ -153,9 +153,9 @@
delete_records("workshop_grades", "assessmentid", $assessment->id);
echo ".";
}
- // ...now delete the assessments...
- delete_records("workshop_assessments", "submissionid", $submission->id);
}
+ // ...now delete the assessments...
+ delete_records("workshop_assessments", "submissionid", $submission->id);
// ...and the submission record...
delete_records("workshop_submissions", "id", $submission->id);
// ..and finally the submitted file

0 comments on commit 7f6c2d1

Please sign in to comment.