Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions local/o365/classes/feature/sds/task/sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ public static function get_or_create_class_course(string $classobjectid, string
}

// Create new course category and object record.
$fullname = substr($fullname, 0, 254); // Course full name max length is 254, while class display name can be 256.
$data = ['category' => $categoryid, 'shortname' => $shortname, 'fullname' => $fullname, 'idnumber' => $classobjectid];
$course = create_course((object) $data);

Expand Down
Loading