Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Verified Commit 37f2e60a authored by David Beniamine's avatar David Beniamine
Browse files

Fix bad courseid in DB

parent 2533038f
......@@ -82,6 +82,8 @@ function labnbook_add_instance($moduleinstance, $mform = null)
}
$moduleinstance->timecreated = \time();
// On database field name is courseid not course
$moduleinstance->courseid = (int)$moduleinstance->course;
$id = $DB->insert_record(LABNBOOK_TABLE, $moduleinstance);
return $id;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment