Make split_draft correctly autopublish both parent and child during create_child

This commit is contained in:
Calen Pennington
2014-09-08 13:42:18 -04:00
parent bc40b8f149
commit df6dc21939

View File

@@ -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