To replicate this bug:

- Create two geospatial field on the same content type
- Create a view with both these fields
- Both fields should be using the same Display Format.

The value of the first field is inserted into the view of the second field. This does not happen when a different Display Format is used for the different fields.

CommentFileSizeAuthor
#1 views.patch964 bytesphayes

Comments

phayes’s picture

StatusFileSize
new964 bytes

Patch attached

It looks as though this is because field_alias is set to 'unknown' by default. If two fields are added with the same function the field alias becomes unknown_functioname. Therefore we end up having two identical aliases. This patch adds the name of the field before the function name so we have "fieldname_functionname" as the field alias.

If functions start having variables, and we want to run the same function on the same field, but with different variables, we will run into problems. I've haven't patched for this potential future problem, but merely for the current reality.

phayes’s picture

Component: Geo Field module » Geo API
Status: Active » Needs review
allie micka’s picture

Status: Needs review » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

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