MDL-59070 enrol_database: Take enablecompletion from template
authorLuca Bösch <luca.boesch@bfh.ch>
Wed, 14 Feb 2018 22:13:31 +0000 (23:13 +0100)
committerLuca Bösch <luca.boesch@bfh.ch>
Thu, 8 Mar 2018 16:24:39 +0000 (17:24 +0100)
enrol/database/lib.php

index c888169..11500fb 100644 (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) {