Closed (duplicate)
Project:
GMap Module
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2009 at 22:50 UTC
Updated:
26 Nov 2009 at 05:30 UTC
I have found that the location_cck module is not saving correctly to location_instance table. It saves the uid, nid and vid fields as 0. This does not stop location_cck from working, but views location table does not find things.
I had a look at the code and changed location_cck.module line 138 from
location_save_locations($items, array('genid' => $genid));
to
location_save_locations($items, array('genid' => $genid, 'uid' => $node->uid, 'vid' => $node->vid, 'nid' => $node->nid));
patch on location_cck.module attached
Hope this helps.
| Comment | File | Size | Author |
|---|---|---|---|
| location_cck_fixsave.patch | 586 bytes | hutch |
Comments
Comment #1
nickl commentedSimilar patch ready for review which takes a similar approach to here.
CCK/Views: location_instance fix