Commit fdb4309b by Braden MacDonald

Drive-by fix of bug in Studio with old mentoring assessment mode

parent caa5bdb4
...@@ -501,7 +501,7 @@ class MentoringBlock(BaseMentoringBlock, StudioContainerXBlockMixin, StepParentM ...@@ -501,7 +501,7 @@ class MentoringBlock(BaseMentoringBlock, StudioContainerXBlockMixin, StepParentM
# The student got this wrong. Check if there is a review tip to show. # The student got this wrong. Check if there is a review tip to show.
tip_html = child.get_review_tip() tip_html = child.get_review_tip()
if tip_html: if tip_html:
if hasattr(self.runtime, 'replace_jump_to_id_urls'): if getattr(self.runtime, 'replace_jump_to_id_urls', None) is not None:
tip_html = self.runtime.replace_jump_to_id_urls(tip_html) tip_html = self.runtime.replace_jump_to_id_urls(tip_html)
review_tips.append(tip_html) review_tips.append(tip_html)
return review_tips return review_tips
......
...@@ -106,7 +106,7 @@ class MessageParentMixin(object): ...@@ -106,7 +106,7 @@ class MessageParentMixin(object):
child = self.runtime.get_block(child_id) child = self.runtime.get_block(child_id)
if child.type == message_type: if child.type == message_type:
content = child.content content = child.content
if hasattr(self.runtime, 'replace_jump_to_id_urls'): if getattr(self.runtime, 'replace_jump_to_id_urls', None) is not None:
content = self.runtime.replace_jump_to_id_urls(content) content = self.runtime.replace_jump_to_id_urls(content)
return content return content
if or_default: if or_default:
......
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