Skip to content

Bug with validation? #17

@migmolrod

Description

@migmolrod

Don't know if it can be called a 'bug'. Maybe 'room for improvement'. The thing is as follows:

Steps to reproduce:

  1. Follow the Installation steps.
  2. Make latitude and longitude visible as text types.
  3. Go to the backend in your browser and put an incorrect value like 'aaaa' in either latitude or longitude (or both).

What happens:

The validation errors for those fields are shown at the start of the form.

What should happen:

Each of those validation errors should be shown next to the corresponding field.

How to solve:

I think using the error_mapping option from Symfony Forms documentation should work (unless I misunderstood that option, which would not be rare XD) but I'm not able to get it right. Don't know where to use the error_mapping option. The AddressMapType? The AddressableAware model? The fields?
What to put in the left and right sides of that option?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions