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 I add GeoField to a content type if I try to set a default value, the content type will save but the default values go away. There is no obvious error when this happens, however the values are simply gone.
Comments
Comment #1
rozh CreditAttribution: rozh commentedI have the same problem.
Comment #2
aklump CreditAttribution: aklump at In the Loft Studios commentedI have traced a bug with another module's default values disappearing when the widget is changed. The module I'm using is xml_field and when an XML field has a default value, and then it's widget is changed. The default value is lost. I've debugged this to the function \geofield_field_update_instance which is erasing the default value on a field that has nothing to do with it.
I think there is a logic problem in \geofield_field_update_instance that creates a potential for data loss. Moving this to major.