MDL-59070 enrol_database: Take enablecompletion from template

This commit is contained in:
Luca Bösch 2018-02-14 23:13:31 +01:00
parent 1287039e62
commit c936af395e

View File

@ -782,6 +782,7 @@ class enrol_database_plugin extends enrol_plugin {
$template->groupmodeforce = $courseconfig->groupmodeforce;
$template->visible = $courseconfig->visible;
$template->lang = $courseconfig->lang;
$template->enablecompletion = $courseconfig->enablecompletion;
$template->groupmodeforce = $courseconfig->groupmodeforce;
$template->startdate = usergetmidnight(time());
if ($courseconfig->courseenddateenabled) {