From 637405aecf4b08867b69a13f0ff2cf937bd4da3c Mon Sep 17 00:00:00 2001
From: Matt Hughes
Date: Mon, 26 Apr 2021 11:06:43 -0400
Subject: [PATCH] [fix]: studio display of ungraded subs.s w/useless due dates
By "useless" due dates I'm specifically talking about due dates which
are erroneously set in the course strucutre, but which don't matter
because the entire course is self-paced, rather than instructor-paced.
JIRA:EDUCATOR-5713
---
cms/templates/js/course-outline.underscore | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cms/templates/js/course-outline.underscore b/cms/templates/js/course-outline.underscore
index 0f83b02e59..9110793fc5 100644
--- a/cms/templates/js/course-outline.underscore
+++ b/cms/templates/js/course-outline.underscore
@@ -235,7 +235,7 @@ if (is_proctored_exam) {
<% } %>
- <% } else if (xblockInfo.get('due_date') || xblockInfo.get('graded')) { %>
+ <% } else if ((xblockInfo.get('due_date') && !course.get('self_paced')) || xblockInfo.get('graded')) { %>
<%- gettext('Graded as:') %>