Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When the geofield is not required if the user does not fill an input geofields assumes (with #1717388-7: Empty values in Lat/lng and Bounds widgets does not work) the field is empty without warning the user.
This patch adds that validation to alert users that in case the fill one of the input they must fill the rest.
Comment | File | Size | Author |
---|---|---|---|
#4 | 1717860-4-am.patch | 2.58 KB | jherencia |
#4 | 1717860-4.patch | 2.14 KB | jherencia |
#1 | 1717860-1-am.patch | 2.82 KB | jherencia |
#1 | 1717860-1.patch | 2.39 KB | jherencia |
Comments
Comment #1
jherencia CreditAttribution: jherencia commentedComment #2
phayes CreditAttribution: phayes commentedWe need to be careful about the use of using
empty
function where we are dealing with float values that may (correctly) be "0.00"Comment #3
jherencia CreditAttribution: jherencia commentedAgain, you are right.
Comment #4
jherencia CreditAttribution: jherencia commentedComment #5
Brandonian CreditAttribution: Brandonian commentedLooks good, @jherencia. Committed.
http://drupalcode.org/project/geofield.git/commit/7cc6aca