Commit e0fbd14c by Tim Krones

In dropdown listing blocks, show question ID (name) instead of block ID

if "question" attribute is not set to a meaningful value.
parent bb2ea267
......@@ -156,7 +156,10 @@ class InstructorToolBlock(XBlock):
- block ID
"""
# - Try "question" attribute:
block_name = getattr(block, 'question', block.name)
block_name = getattr(block, 'question', None)
if not block_name:
# Try question ID (name):
block_name = getattr(block, 'name', None)
if not block_name:
# - Try display_name:
block_name = getattr(block, 'display_name', None)
......
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