StreetCode
StreetCode copied to clipboard
[Admin/Modal window with photo] If an admin save the data before the photo is uploaded and then close the modal window, the create request fails with a 500 error
Environment: Windows 11, Google Chrome Version 111.0.5563.147 (64-bit) Reproducible: Always Build found: 8490f60
Preconditions
- The site is open.
- Logged as admin.
Steps to reproduce
- Go to the modal window.
- Fill in all mandatory fields.
- Add the photo and don't wait for the photo to download completely and click on the 'Зберегти' button.
- Сlose the window.
Actual result
- The 'Зберегти' button is disabled until the photo has been uploaded.
- Despite a message appearing that indicates successful creation, the creation request fails with a 500 error.
https://github.com/ita-social-projects/StreetCode/assets/135108144/bbd25ec2-7312-4f0e-9aca-4d303ac33226
https://github.com/ita-social-projects/StreetCode/assets/135108144/2689262d-14f5-43ae-ad7f-aa24d3a54559
https://github.com/ita-social-projects/StreetCode/assets/135108144/53561d33-1ef4-4025-af1d-02dc2161a213
Expected result The 'Зберегти' button is disabled until the photo has been uploaded.
Modal windows with these problems:
- [x] [Partners]->'Створити партнера'
- [ ] [Для фанатів]->'Додати нову категорію'
- [x] [Команда]->'Створити нового члена команди'
It still reproduces for the '[Для фанатів]' category.
Retest this issue one more time, please. It seems that, probably, issue can be already solved, otherwise we need more explanation about what is not working specifically right now.