Skip to content

Conversation

@samialfattani
Copy link
Contributor

@samialfattani samialfattani commented Dec 30, 2025

This PR shows an alert message if a record failed to create/edit/upload

image image

Why this PR
Without this PR, the enduser might get confused after submitting the create/edit/upload form if the proccess is failed. Yes the error desctiption will be presented under each invalid form field, but still the enduser needs a flash message to alert him with the failure of the proccess so that he can investigate the page looking for the invalid field.

@samialfattani samialfattani marked this pull request as ready for review December 30, 2025 13:48
@ElLorans ElLorans merged commit ff32000 into pallets-eco:master Jan 1, 2026
12 checks passed
ElLorans added a commit that referenced this pull request Jan 1, 2026
ElLorans added a commit that referenced this pull request Jan 1, 2026
bugfix: removes the err msg appearing even when accessing the edit form
@ElLorans
Copy link
Contributor

ElLorans commented Jan 1, 2026

This had to be reverted with #2737 since the err msg was getting flashed even when accessing the edit form for the first time. We need the tests to check also that the msg is not flashed when it shouldn't.

@samialfattani
Copy link
Contributor Author

ok i will fix it with adding extra tests to make sure it is not showing on GET request

@samialfattani samialfattani mentioned this pull request Jan 4, 2026
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants