Skip to content

Simple example administration to demonstrate validation meassge bug.

Notifications You must be signed in to change notification settings

MagicMajky/ea-validation-bug-example

Repository files navigation

Project start

Start the project with docker-compose up
Go to localhost:8000/admin

Steps to reproduce

Invalid indexing when collection is empty

Create a new Person with an invalid email (email without @).
The validation message is not displayed on the invalid email but instead at the top of the form.
Verify that this is an indexing issue by adding another invalid email.
Now the message for email 2 is displayed on the email 1 and email 2 has no validation message attached.

Valid indexing when collection is not empty

Verify that the indexing works when the collection was not empty prior to editing.
Create a Person with one valid email and save it.
Edit the Person and add invalid email. Now the invalid email has the correct message atached.

Debugging

If you get the error symfony_app | error: failed switching to "root": operation not permitted after you stopped the container with ctrl+c, you need to run docker-compose down to remove the container and then docker-compose up to start it again. That should fix the issue.

About

Simple example administration to demonstrate validation meassge bug.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published