Commit cdf5dea2 by Cliff Dyer Committed by GitHub

Merge pull request #12717 from edx/tnl/splittest-zerogroup

Ensure split-test group zero content is protected
parents 81e5be22 4212a3c3
......@@ -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):
"""
......
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