Skip to content

Commit 5ec32ab

Browse files
author
Ron Lucke
authored
Update MigrateCoursewareCommand.php
fix TestBlock payload
1 parent 3a2ef6f commit 5ec32ab

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

command/MigrateCoursewareCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,8 @@ private function createBlock($block, $container, $user, $cid, $courseware, $outp
672672
break;
673673
case 'TestBlock':
674674
$payload = array(
675-
'assignment_id' => $block['fields']['assignment_id']
675+
'title' => '',
676+
'assignment' => $block['fields']['assignment_id']
676677
);
677678
$block_type = 'test';
678679
$addBlock = true;

0 commit comments

Comments
 (0)