Commit c96c1c8e by Afzal Wali Naushahi Committed by GitHub

Merge pull request #15667 from edx/afzaledx/get_programs_with_type_fix

Added a missing parameter.
parents 53d9f87d ec1473f8
......@@ -211,7 +211,7 @@ def index(request, extra_context=None, user=AnonymousUser()):
# Add marketable programs to the context if the multi-tenant programs switch is enabled.
if waffle.switch_is_active('get-multitenant-programs'):
programs_list = get_programs_with_type(include_hidden=False)
programs_list = get_programs_with_type(request.site, include_hidden=False)
context['programs_list'] = programs_list
......
......@@ -156,7 +156,7 @@ def courses(request):
# Add marketable programs to the context if the multi-tenant programs switch is enabled.
if waffle.switch_is_active('get-multitenant-programs'):
programs_list = get_programs_with_type(include_hidden=False)
programs_list = get_programs_with_type(request.site, include_hidden=False)
return render_to_response(
"courseware/courses.html",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment