Commit 67d6347e by Don Mitchell

Use continue version for create course side effects

parent ba8d390f
......@@ -604,7 +604,8 @@ class ModuleStoreWriteBase(ModuleStoreReadBase, ModuleStoreWrite):
about_location.block_type,
block_id=about_location.block_id,
definition_data=overview_template.get('data'),
runtime=runtime
runtime=runtime,
continue_version=True,
)
def clone_course(self, source_course_id, dest_course_id, user_id, fields=None, **kwargs):
......
......@@ -42,7 +42,7 @@ class DraftVersioningModuleStore(ModuleStoreDraftAndPublished, SplitMongoModuleS
# in this
with self.branch_setting(ModuleStoreEnum.Branch.draft_preferred, item.id):
super(SplitMongoModuleStore, self).create_course(
org, course, run, user_id, **kwargs
org, course, run, user_id, runtime=item.runtime, **kwargs
)
return item
......
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