Description:
Quick Enroll button appears to Admin users if they are enrolled in a course/org and that enrollment is disabled/unavailable, and when they click it again a DB error "blackboard.persist.PersistenceException: blackboard.persist.PersistenceRuntimeException: Could not perform database operation. An unknown error has occurred. ERROR: duplicate key value violates unique constraint "course_users_ak1" is shown.
Steps to Repeat:
1. Log into Blackboard Learn as Administrator
2. Go into an Original view course
3. Quick Enroll in the course.
4. Click on Course Management > Users and Groups > Users
5. Choose 'Administrator' click on the chevron 'Change User's Role in Course' or 'Change User's Availability in Course'
6. Available (this course only) -> Select 'No' and Submit
7. Click on 'Quick Enroll' again
Observed Behavior:
DB error "blackboard.persist.PersistenceException: blackboard.persist.PersistenceRuntimeException: Could not perform database operation. An unknown error has occurred. ERROR: duplicate key value violates unique constraint "course_users_ak1" is displayed.
Expected Behavior:
The Administrator is available on the course.