Commit 4245816e by Don Mitchell

Separate bug on virgin grading policy edits not being persisted b/c the

definition not being updated when using defaults. Not sure why this
passed before.
parent e55bb845
...@@ -118,6 +118,8 @@ class CourseGradingModel(object): ...@@ -118,6 +118,8 @@ class CourseGradingModel(object):
descriptor.raw_grader[index] = grader descriptor.raw_grader[index] = grader
else: else:
descriptor.raw_grader.append(grader) descriptor.raw_grader.append(grader)
# make definition notice the update
descriptor.raw_grader = descriptor.raw_grader
get_modulestore(course_location).update_item(course_location, descriptor.definition['data']) get_modulestore(course_location).update_item(course_location, descriptor.definition['data'])
......
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