Skip to content
Snippets Groups Projects
Commit d4fc94ba authored by Tobias Thelen's avatar Tobias Thelen
Browse files

- correct cid, fixes #18

parent ce4588c9
No related branches found
No related tags found
No related merge requests found
......@@ -218,7 +218,7 @@ class AssistantController extends ToolAssistantBaseController
$remote_db_block = dbBlock::find($block['id']);
$remote_ui_block = $this->coursewarePlugin->getBlockFactory()->makeBlock($remote_db_block);
$data = array('title' => $remote_db_block->title, 'cid' => $cid, 'publication_date' => null, 'withdraw_date' => null);
$data = array('title' => $remote_db_block->title, 'cid' => $current_cid, 'publication_date' => null, 'withdraw_date' => null);
$new_block = $this->createAnyBlock($current_section->id, $remote_db_block->type, $data, $remote_db_block->sub_type);
$new_ui_block = $this->coursewarePlugin->getBlockFactory()->makeBlock($new_block);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment