LMS-11371 Fix register bug - encoding of course_id.

This commit is contained in:
Nimisha Asthagiri
2014-09-08 11:22:20 -04:00
parent 935d5dee34
commit 7637f063e9

View File

@@ -102,7 +102,7 @@
location.href = xhr.responseText;
}
} else if (xhr.status == 403) {
location.href = "${reverse('register_user')}?course_id=${course.id.to_deprecated_string()}&enrollment_action=enroll";
location.href = "${reverse('register_user')}?course_id=${course.id | u}&enrollment_action=enroll";
} else {
$('#register_error').html(
(xhr.responseText ? xhr.responseText : 'An error occurred. Please try again later.')