Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug(Design Submission): Duplicated Credits & Saving Credits w/o image #632

Merged
merged 2 commits into from
Jun 29, 2023

Conversation

AW0005
Copy link
Contributor

@AW0005 AW0005 commented Jun 21, 2023

This fixes two things:

  1. If you were in design submission and had supplied an image and artist credits but you got an error (for example by providing an image with a wrong format or an image that was too large) the browser auto-populates the hidden form elements for the credits with what had been previously picked and since those hidden elements were kept inside the form, they would be duplicated on hitting the submit button the second time. So I moved them to be outside of the form.

  2. In the process of fixing the above I realized that I'd get an error if I attempted to only change the credits without uploading a new image, so I fixed that with a better if check on thumbnail processing as well.

@itinerare itinerare added bug Something isn't working needs review Pull requests that are pending community review labels Jun 21, 2023
@itinerare itinerare added reviewed Pull requests that have received community review and are pending merge and removed needs review Pull requests that are pending community review labels Jun 29, 2023
@itinerare itinerare merged commit 6355c0f into corowne:develop Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reviewed Pull requests that have received community review and are pending merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants