diff --git a/lms/djangoapps/instructor/views.py b/lms/djangoapps/instructor/views.py index 671283db9f..b1a62a5039 100644 --- a/lms/djangoapps/instructor/views.py +++ b/lms/djangoapps/instructor/views.py @@ -229,9 +229,11 @@ def instructor_dashboard(request, course_id): if student_to_reset is not None: # find the module in question + if '/' not in problem_to_reset: # allow state of modules other than problem to be reset + problem_to_reset = "problem/" + problem_to_reset # but problem is the default try: (org, course_name, run) = course_id.split("/") - module_state_key = "i4x://" + org + "/" + course_name + "/problem/" + problem_to_reset + module_state_key = "i4x://" + org + "/" + course_name + "/" + problem_to_reset module_to_reset = StudentModule.objects.get(student_id=student_to_reset.id, course_id=course_id, module_state_key=module_state_key) diff --git a/lms/templates/courseware/instructor_dashboard.html b/lms/templates/courseware/instructor_dashboard.html index 23329c837d..1931a80fce 100644 --- a/lms/templates/courseware/instructor_dashboard.html +++ b/lms/templates/courseware/instructor_dashboard.html @@ -190,6 +190,7 @@ function goto( mode) +
%endif @@ -197,11 +198,13 @@ function goto( mode)

edX email address or their username:

and, if you want to reset the number of attempts for a problem, the urlname of that problem

-

+

%if instructor_access:

You may also delete the entire state of a student for a problem:

+

To delete the state of other XBlocks specify modulename/urlname, eg + combinedopenended/Humanities_SA_Peer

%endif %endif