apluslms / a-plus

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

Setting a unique CourseInstance.url in the edit course instance form crashes A+ #1328

Closed khattam2 closed 7 months ago

khattam2 commented 7 months ago

Fixes #1327

Description

What?

Setting a unique CourseInstance.url in the edit course instance form crashes A+

Why?

When editing the url to a unique value and saving the changes, the page crashes as the old url is being called, which no longer exits.

How?

Changing the code so the it calls the new url being saved.

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!

ihalaij1 commented 7 months ago

I shortened the commit message.