Skip to content
Snippets Groups Projects
Commit df6dc219 authored by Calen Pennington's avatar Calen Pennington
Browse files

Make split_draft correctly autopublish both parent and child during create_child

parent bc40b8f1
No related branches found
Tags release-2021-05-10-06.20
No related merge requests found
......@@ -129,6 +129,8 @@ class DraftVersioningModuleStore(ModuleStoreDraftAndPublished, SplitMongoModuleS
user_id, parent_usage_key, block_type, block_id=block_id,
fields=fields, **kwargs
)
# Publish both the child and the parent, if the child is a direct-only category
self._auto_publish_no_children(item.location, item.location.category, user_id, **kwargs)
self._auto_publish_no_children(parent_usage_key, item.location.category, user_id, **kwargs)
return item
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment