make beta dash compute module_state_key like legacy dash (LMS-2491)

This commit is contained in:
Adam Palay
2014-04-02 15:46:32 -04:00
parent af486423c8
commit 7b2cbfc5c5

View File

@@ -1252,9 +1252,9 @@ def _msk_from_problem_urlname(course_id, urlname):
urlname = urlname[:-4]
# Combined open ended problems also have state that can be deleted. However,
# appending "problem" will only allow capa problems to be reset.
# Get around this for combinedopenended problems.
if "combinedopenended" not in urlname:
# prepending "problem" will only allow capa problems to be reset.
# Get around this for xblock problems.
if "/" not in urlname:
urlname = "problem/" + urlname
parts = Location.parse_course_id(course_id)