Closed (fixed)
Project:
Geo
Component:
Geo Field module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2009 at 18:42 UTC
Updated:
13 Jun 2009 at 14:00 UTC
Jump to comment: Most recent file
In geo_field.module on line 169, the code to populate $node->geo_fields is incorrect. $node->geo_fields in being overwritten with a fresh array each time this is run. This results in only the last geo_field to be processed being lsited in the array. Working correct code is:
// Identify ourselves on the node level for RSS and other postprocessing.
if (!$node->geo_fields){
$node->geo_fields = array();
}
$node->geo_fields[] = $field['field_name'];
return array($field['field_name'] => $ret, 'geo_fields' => $node->geo_fields);
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 444242_field_array.patch | 1.03 KB | greggles |
Comments
Comment #1
phayes commentedComment #2
phayes commentedHere's some cleaned up code:
Thanks for the great module!
Comment #3
gregglesAs a patch, with slight code style cleanup (space between ) and {).
I'm not sure this makes sense, but at least with a patch it's easier to review.
Comment #4
plopescIt woks!!!
Thans a lot!!
Comment #5
allie mickaCommitted - thanks!