Prevent ordering closed courses, and give a good user message.
When Drupal attempts to enroll a user in a closed course, a 406 will be returned. This causes the marketing site to redirect to the track selection page for that course, which will then redirect to the dashboard with a nice message. ECOM-2317
Showing
- common/djangoapps/course_modes/tests/test_views.py 22 additions, 0 deletionscommon/djangoapps/course_modes/tests/test_views.py
- common/djangoapps/course_modes/views.py 8 additions, 1 deletioncommon/djangoapps/course_modes/views.py
- common/djangoapps/student/views.py 4 additions, 0 deletionscommon/djangoapps/student/views.py
- common/test/acceptance/tests/lms/test_lms.py 92 additions, 2 deletionscommon/test/acceptance/tests/lms/test_lms.py
- lms/djangoapps/commerce/api/v0/tests/test_views.py 13 additions, 0 deletionslms/djangoapps/commerce/api/v0/tests/test_views.py
- lms/djangoapps/commerce/api/v0/views.py 7 additions, 0 deletionslms/djangoapps/commerce/api/v0/views.py
- lms/djangoapps/commerce/constants.py 1 addition, 0 deletionslms/djangoapps/commerce/constants.py
Please register or sign in to comment