Closed (fixed)
Project:
Geo
Component:
Geo API
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2009 at 23:35 UTC
Updated:
21 Jan 2010 at 18:20 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | views.patch | 964 bytes | phayes |
Comments
Comment #1
phayes commentedPatch 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.
Comment #2
phayes commentedComment #3
allie mickaCommitted. Thanks!