From df6dc21939e883acb3b88f03f9cb210f83ecb6fe Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 8 Sep 2014 13:42:18 -0400 Subject: [PATCH] Make split_draft correctly autopublish both parent and child during create_child --- .../lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py b/common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py index 1bea77b335..45a2d88705 100644 --- a/common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py +++ b/common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py @@ -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