apluslms / a-plus

A+ frontend portal - A+ LMS documentation:
https://apluslms.github.io/
Other
65 stars 72 forks source link

Setting a non-unique CourseInstance.url in the edit course instance form crashes #1325

Closed khattam2 closed 7 months ago

khattam2 commented 7 months ago

Fixes #1201

Description

What?

Setting a non-unique CourseInstance.url in the edit course instance form crashes the application.

Why?

The non-unique url was throwing an error and was not being properly validated.

How?

The non unique url is now properly being validated to see the outcome that it already exists.

Testing

image

Remember to add or update unit tests for new features and changes.

What type of test did you run?

[ADD A DESCRIPTION ABOUT WHAT YOU TESTED MANUALLY]

Did you test the changes in

Think of what is affected by these changes and could become broken

Translation

Programming style

Have you updated the README or other relevant documentation?

Is it Done?

Clean up your git commit history before submitting the pull request!