Gitlab CSE Unil

Commit 49874927 authored by M. Chardon's avatar M. Chardon
Browse files

correction bug new annotations on new document

parent 3eb5187d
......@@ -396,7 +396,7 @@ class page_editor {
// Copy all the draft annotations to non-drafts.
$records = $DB->get_records(self::BDDTABLEANNOTATION, array(self::GRADEID => $gradeid, self::DRAFLIB => 1));
foreach ($records as $record) {
$newid = $this->create_annotation_for_release($record, $parentlink);
$newid = self::create_annotation_for_release($record, $parentlink);
$parentlink[$oldid] = $newid;
}
} else {
......
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