Skip to content

Commit

Permalink
MDL-53904 course: apply default completion when approving request
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Apr 27, 2016
1 parent 6bd3ab0 commit f6b9b6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions course/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3209,6 +3209,7 @@ public function approve() {
$data->visible = $courseconfig->visible;
$data->visibleold = $data->visible;
$data->lang = $courseconfig->lang;
$data->enablecompletion = $courseconfig->enablecompletion;

$course = create_course($data);
$context = context_course::instance($course->id, MUST_EXIST);
Expand Down

0 comments on commit f6b9b6b

Please sign in to comment.