Commit b232a70d by Tim Krones

Make sure jump_to_id links in table column headers are translated

correctly in the LMS.
parent d500a621
...@@ -113,7 +113,11 @@ class MentoringTableBlock( ...@@ -113,7 +113,11 @@ class MentoringTableBlock(
for child_id in self.children: for child_id in self.children:
child = self.runtime.get_block(child_id) child = self.runtime.get_block(child_id)
# Child should be an instance of MentoringTableColumn # Child should be an instance of MentoringTableColumn
header_values.append(child.header) header = child.header
# Make sure /jump_to_id/ URLs are expanded correctly
if getattr(self.runtime, 'replace_jump_to_id_urls', None):
header = self.runtime.replace_jump_to_id_urls(header)
header_values.append(header)
child_frag = child.render('mentoring_view', context) child_frag = child.render('mentoring_view', context)
content_values.append(child_frag.content) content_values.append(child_frag.content)
context['header_values'] = header_values if any(header_values) else None context['header_values'] = header_values if any(header_values) else 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