In Views, I've added the Location address - Administrative Area field. However, the Views result rendered the integer option "key" value, rather than the output string (Like for example: "Selangor").
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | administrative_area_views_field_handler-2421211-6.patch | 2.85 KB | 7thkey |
| #5 | administrative_area_views_field_handler-2421211-5.patch | 2.82 KB | blazey |
Comments
Comment #1
blazey commentedAdministrative area views field needs a dedicated handler and it wasn't provided by the patch from https://www.drupal.org/node/991834#comment-7986915. Attached patch should solve the problem.
Comment #2
blazey commentedColumn name needs to be constructed using field name. Attaching auto-fix and interdiff.
Comment #3
blazey commentedComment #4
blazey commentedComment #5
blazey commentedNext fix.
Comment #6
7thkey commentedPatch #5 works!!
Changed to development, this was turning old and has not been included into the module.
BTW added new patch compatible with the development version.
Comment #7
bojanz commentedCommitted, thank you.
Comment #10
summit commentedHi,
Off course this will only work if the administrative area's , say provinces are included within the module..
For France and Germany for instance this is not the case...so it shows my codes from migration here...
greetings, Martijn
Comment #11
pslcbs commentedHello!,
sorry but is not converting the codes in province names for me with spanish provinces that are included in module file addressfield.administrative_areas.inc.
Is giving me only the administrative area code within a calendar view
Using 7.x-1.2 and dev version 7.x-1.1+16-dev with views 7.x-3.13
Thanks