add some field specific error messages regarding uniqueness
This commit is contained in:
committed by
Brian Talbot
parent
2c61ad45bd
commit
f29819ca4a
@@ -677,7 +677,9 @@ function saveNewCourse(e) {
|
||||
if (data.id !== undefined) {
|
||||
window.location = '/' + data.id.replace(/.*:\/\//, '');
|
||||
} else if (data.ErrMsg !== undefined) {
|
||||
setNewCourseErrMsgs(data.ErrMsg, null, null, null, null);
|
||||
orgErrMsg = (data.OrgErrMsg !== undefined) ? data.OrgErrMsg : null;
|
||||
courseErrMsg = (data.CourseErrMsg !== undefined) ? data.CourseErrMsg : null;
|
||||
setNewCourseErrMsgs(data.ErrMsg, null, orgErrMsg, courseErrMsg, null);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user