Skip to content

Commit

Permalink
fix: add children scope to learning core runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Feb 4, 2025
1 parent 237e16f commit b738ca1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _check_field(self, block, name):
able to read/write it.
"""
field = self._getfield(block, name)
if field.scope not in (Scope.content, Scope.settings):
if field.scope not in (Scope.content, Scope.settings, Scope.children):
raise NotImplementedError(
f"Scope {field.scope} (field {name} of {block.scope_ids.usage_id}) "
"is unsupported. LearningCoreFieldData only supports the content"
Expand Down
2 changes: 1 addition & 1 deletion openedx/core/djangoapps/xblock/runtime/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __init__(
assert student_data_mode in (StudentDataMode.Ephemeral, StudentDataMode.Persisted)
self.authored_data_mode = authored_data_mode
self.authored_data_store = authored_data_store
self.children_data_store = None
self.children_data_store = authored_data_store
self.student_data_mode = student_data_mode
self.handler_url_fn = handler_url
self.user = user
Expand Down

0 comments on commit b738ca1

Please sign in to comment.