Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: return items in _get_render_metadata without validate prereq_met #36244

Open
wants to merge 1 commit into
base: open-release/sumac.master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions xmodule/seq_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,8 @@ def _get_render_metadata(self, context, children, prereq_met, prereq_meta_info,
'This section is a prerequisite. You must complete this section in order to unlock additional content.'
)

blocks = self._render_student_view_for_blocks(context, children, fragment, view) if prereq_met else []

params = {
'items': blocks,
'items': self._render_student_view_for_blocks(context, children, fragment, view),
'element_id': self.location.html_id(),
'item_id': str(self.location),
'is_time_limited': self.is_time_limited,
Expand Down
Loading