Update annotations modules to use the course_id from the runtime, rather than extracting it from the page
This commit is contained in:
@@ -81,6 +81,7 @@ class TextAnnotationModule(AnnotatableFields, XModule):
|
||||
def get_html(self):
|
||||
""" Renders parameters to template. """
|
||||
context = {
|
||||
'course_id': self.runtime.course_id,
|
||||
'display_name': self.display_name_with_default,
|
||||
'tag': self.tags,
|
||||
'source': self.source,
|
||||
|
||||
@@ -149,6 +149,7 @@ class VideoAnnotationModule(AnnotatableFields, XModule):
|
||||
extension = self._get_extension(self.sourceurl)
|
||||
|
||||
context = {
|
||||
'course_id': self.runtime.course_id,
|
||||
'display_name': self.display_name_with_default,
|
||||
'instructions_html': self.instructions,
|
||||
'sourceUrl': self.sourceurl,
|
||||
|
||||
Reference in New Issue
Block a user