File tree Expand file tree Collapse file tree
common/djangoapps/student/views Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -790,6 +790,15 @@ def student_dashboard(request): # pylint: disable=too-many-statements
790790 context = {
791791 'urls' : urls ,
792792 'programs_data' : programs_data ,
793+ # These enterprise-related keys are populated by DashboardContextEnricher (via DashboardRenderStarted filter)
794+ # when the enterprise package is installed. Safe defaults are provided here so that:
795+ # 1. The template renders safely on non-enterprise deployments.
796+ # 2. Any stale compiled Mako cache that still references consent_required_courses (from before
797+ # PR #38094 removed that line) will not crash with "argument of type 'Undefined' is not iterable".
798+ 'enterprise_message' : '' ,
799+ 'consent_required_courses' : set (),
800+ 'enterprise_learner_portal_enabled_message' : None ,
801+ 'banner_account_activation_message' : None ,
793802 'enrollment_message' : enrollment_message ,
794803 'redirect_message' : Text (redirect_message ),
795804 'account_activation_messages' : account_activation_messages ,
Original file line number Diff line number Diff line change @@ -3292,7 +3292,7 @@ def _should_send_certificate_events(settings):
32923292 "pipeline" : ["enterprise.filters.accounts.AccountSettingsReadOnlyFieldsStep" ],
32933293 },
32943294 "org.openedx.learning.dashboard.render.started.v1" : {
3295- "fail_silently" : False ,
3295+ "fail_silently" : True ,
32963296 "pipeline" : ["enterprise.filters.dashboard.DashboardContextEnricher" ],
32973297 },
32983298}
You can’t perform that action at this time.
0 commit comments