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").

Comments

blazey’s picture

Status: Active » Needs review
StatusFileSize
new2.8 KB

Administrative 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.

blazey’s picture

Column name needs to be constructed using field name. Attaching auto-fix and interdiff.

blazey’s picture

blazey’s picture

blazey’s picture

StatusFileSize
new2.82 KB
new1.33 KB

Next fix.

7thkey’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
StatusFileSize
new2.85 KB

Patch #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.

bojanz’s picture

Status: Needs review » Fixed

Committed, thank you.

  • bojanz committed c7ccb37 on authored by blazey
    Issue #2421211 by blazey, 7thkey: Administrative Area in Views is...

Status: Fixed » Closed (fixed)

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

summit’s picture

Hi,
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

pslcbs’s picture

Hello!,
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