Ensure split-test group zero content is protected

TNL-4771
This commit is contained in:
J. Cliff Dyer
2016-06-10 14:00:17 +00:00
parent 249467c9bb
commit 4212a3c326

View File

@@ -66,7 +66,7 @@ class SplitTestTransformer(BlockStructureTransformer):
for child_location in xblock.children:
child = block_structure.get_xblock(child_location)
group = child_to_group.get(child_location, None)
child.group_access[partition_for_this_block.id] = [group] if group else []
child.group_access[partition_for_this_block.id] = [group] if group is not None else []
def transform(self, usage_info, block_structure):
"""