I think we need to create a custom addressfield formatter. The '--' indicates the state, which is null, but thats the selector for null. Events also are being saved as 'US' when they are online. We probably don't want any country information stored here.
Empty addesses are now themed out with the following commits. This will work even if the user changes the event node type or adds other content to allow for multiple values.
We can override in the theme for now. Ultimately its a bug in addressfield, its not using the hook_field_is_empty call, thus its storing erroneous data, and showing the field as non-empty in views.
Comments
Comment #1
japerryComment #2
japerryI think we need to create a custom addressfield formatter. The '--' indicates the state, which is null, but thats the selector for null. Events also are being saved as 'US' when they are online. We probably don't want any country information stored here.
Comment #3
ezra-g commentedThanks for looking into that. Perhaps it's an option to override this output in the theme?
Setting back to "active".
Comment #4
Zarabadoo commentedEmpty addesses are now themed out with the following commits. This will work even if the user changes the event node type or adds other content to allow for multiple values.
http://drupalcode.org/project/commons_origins.git/commit/dfda4d4
http://drupalcode.org/project/commons_origins.git/commit/cf59477
http://drupalcode.org/project/commons_origins.git/commit/1e5df40
Comment #5
japerryWe can override in the theme for now. Ultimately its a bug in addressfield, its not using the hook_field_is_empty call, thus its storing erroneous data, and showing the field as non-empty in views.