fix: 500 error during opening program certificate page (Quince) #4183
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is backport from the master.
Description:
Error 500 occurs when going to the Program certificate page if an organization is connected to the
Authoring organizations
field with an empty fieldCertificate logo image
:Steps to Reproduce:
Authoring organizations
field that does not have an image loaded for theCertificate logo image field
:I propose that before saving the program, verify if the Certificate logo image field of the associated organizations is empty. Also, make the certificate_logo_image field required to be filled in the admin panel, but not in the model, to prevent unnecessary migrations.
On the Program page
https://<discovery>/admin/course_metadata/program/
:On the Organization page
https://<discovery>/admin/course_metadata/organization/
: