Commit 34ba3b44 by Asad Azam Committed by AsadAzam

Fixed the no error message on entering duplicate course run key

parent df911f74
......@@ -44,6 +44,9 @@ $(document).ready(function() {
error: function (response) {
if(response.responseJSON.lms_course_id) {
$studioInstanceError.find(".copy").html(response.responseJSON.lms_course_id['lms_course_id']);
if (response.responseJSON['lms_course_id'][0]){
$studioInstanceError.find(".copy").html(response.responseJSON['lms_course_id'][0]);
}
} else if(response.responseJSON.detail) {
$studioInstanceError.find(".copy").html(response.responseJSON.detail);
} else {
......
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