Skip to content

Commit

Permalink
Merge pull request #418 from edly-io/mfarhan/EDLY-6016-hot-fix
Browse files Browse the repository at this point in the history
Update course name on rerun course creation EDLY-6016
  • Loading branch information
mfarhan943 authored Sep 12, 2023
2 parents 0fe52f9 + 8ecc8aa commit bc25580
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cms/djangoapps/contentstore/views/course.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,10 @@ def rerun_course(user, source_course_key, org, number, run, fields, background=T
else:
rerun_course_task(*args)

course_module = get_course_and_check_access(destination_course_key, user)
metadata = {u'display_name': fields['display_name']}
CourseMetadata.update_from_dict(metadata, course_module, user)

return destination_course_key


Expand Down

0 comments on commit bc25580

Please sign in to comment.