Let's just not show anything, rather than -- in the events blocks.

Comments

japerry’s picture

Assigned: Unassigned » japerry
japerry’s picture

Status: Active » Needs work

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.

ezra-g’s picture

Status: Needs work » Active

Thanks for looking into that. Perhaps it's an option to override this output in the theme?

Setting back to "active".

Zarabadoo’s picture

Status: Active » Fixed

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.

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

japerry’s picture

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.

Automatically closed -- issue fixed for 2 weeks with no activity.