-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The values for latitude and longitude ("0" and "0") are not valid. #17
Comments
this won't work either |
nor does 'options' => array('required' => false) |
Hi @florinutz Are you getting an error message? |
I am getting this error message too, but fields are not empty. I am using the map in a Sonata Admin form. |
Is there any new/solution about required false? The error message is The values for latitude and longitude ("0" and "0") are not valid when empty. |
Hi, this is my LocationsAdmin.php config
The fields are not required in the form. When you try to save, with lat and lng fields empty, LatLngValidator addViolation, with this error "The values for latitude and longitude ("0" and "0") are not valid." If you try to save with 0 in lat and lng fields, works like a charm. any idea to solve it? thanks |
Hi again, this "solution" works ok,
any comments to improve it? |
->add('map_coordinates', 'oh_google_maps', array(
'required' => false,
'lat_name' => 'Latitude',
'lng_name' => 'Longitude'
))
How can I make these REALLY not required?
The text was updated successfully, but these errors were encountered: