From f61b2e44eb159034877b14764538eaa789bbfd57 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 6 Apr 2020 14:25:58 -0400 Subject: [PATCH] Got the template that is used with tests but not this one. This dashboard template is only used for edx.org so we didn't catch this in testing. Updating it to use 'course' instead of 'course_id' to instantiate a CourseEnrollment object. Using 'course_id' is the old way. --- themes/edx.org/lms/templates/dashboard.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/edx.org/lms/templates/dashboard.html b/themes/edx.org/lms/templates/dashboard.html index 8afc4b7543..b3f7276bda 100644 --- a/themes/edx.org/lms/templates/dashboard.html +++ b/themes/edx.org/lms/templates/dashboard.html @@ -185,7 +185,7 @@ from student.models import CourseEnrollment pseudo_session = unfulfilled_entitlement_pseudo_sessions[str(entitlement.uuid)] if not pseudo_session: continue - enrollment = CourseEnrollment(user=user, course_id=pseudo_session['key'], mode=pseudo_session['type']) + enrollment = CourseEnrollment(user=user, course=CourseOverview.get_from_id(pseudo_session['key']), mode=pseudo_session['type']) # We only show email settings for entitlement cards if the entitlement has an associated enrollment show_email_settings = is_fulfilled_entitlement and (entitlement_session.course_id in show_email_settings_for) else: