Don't know if it can be called a 'bug'. Maybe 'room for improvement'. The thing is as follows:
Steps to reproduce:
- Follow the Installation steps.
- Make latitude and longitude visible as text types.
- 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?
Don't know if it can be called a 'bug'. Maybe 'room for improvement'. The thing is as follows:
Steps to reproduce:
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_mappingoption 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 theerror_mappingoption. The AddressMapType? The AddressableAware model? The fields?What to put in the left and right sides of that option?