There is a bug with Views Hacks, selective filters at the moment. This issue has been reported here: http://drupal.org/node/1608498 as well. The options being displayed by views in most instances are ids instead of readable names for users. In terms of taxonomy, sometimes it is returning term ids. The location module is no exception.

Attached is a patch to allow filtering of location:country to display country names as opposed to country codes. Hope it helps someone whilst the community works out a more universal solution.

Comments

aendra’s picture

Status: Patch (to be ported) » Needs review

Changing status to Needs Review because there's no community response yet.

That said -- it patches cleanly against 7.x-1.0-alpha1 and does what it says on the tin. Maybe one other person can confirm and we can mark this as RTBC?

Thanks for contributing this, mukwenhac!

jonhattan’s picture

Status: Needs review » Postponed

This patch should be rerolled after #2009362-2: Selective filter error: not working with i18n (different languages) is committed, and provide a new case in the proposed switch statement.

miiimooo’s picture

Status: Postponed » Needs review
StatusFileSize
new912 bytes

A similar patch - not sure which one is better but this translates country names correctly (requires the location module to be installed/enabled as it's using the country name function from there instead of the one in core which is used in the patch above)

infojunkie’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

This module has been deprecated in favour of https://drupal.org/project/views_selective_filters. Please test there and reopen if necessary.