Download & Extend

Fix for location modules to display country names instead of country codes

Project:Views Hacks
Version:7.x-1.x-dev
Component:Views Filters Selective
Category:task
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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.

AttachmentSize
views_hacks-replace_location_module_country_codes_with_names.patch1.95 KB

Comments

#1

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!

nobody click here