mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Choice: MDL-20440 Added completion support to Choice (mark completed when user makes choice)
This commit is contained in:
parent
14333c1128
commit
bc499733f8
9 changed files with 108 additions and 15 deletions
|
@ -46,7 +46,7 @@
|
|||
add_to_log($course->id, "choice", "report", "report.php?id=$cm->id", "$choice->id",$cm->id);
|
||||
|
||||
if (data_submitted() && $action == 'delete' && has_capability('mod/choice:deleteresponses',$context) && confirm_sesskey()) {
|
||||
choice_delete_responses($attemptids, $choice->id); //delete responses.
|
||||
choice_delete_responses($attemptids, $choice, $cm, $course); //delete responses.
|
||||
redirect("report.php?id=$cm->id");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue