Location data is not being saved to the database. The fields are available on node/add or node/edit, but neither operation saves input to the location_node table in the db.

No rows are being added as location-enabled nodes are being created.

Existing location data is not being updated on node edits.

I'm using the latest location.module CVS, including commit #15647.

Comments

ankur’s picture

Ah. Looks like somewhere in the last couple of commits there was a change in the way locations were saved.

function _location_save() in location.module needs to be changed so that it expects a location array to be passed in where $edit is passed now.

This will mean that function _location_save() should be passed $node->location as the first param in the call to _location_save() from location_nodeapi() (in location.module). Also, in location_user() (location.module) we need to pass $user->location as the first param to function _location_save().

-Ankur Rishi

Will assign this to myself and post a patch on Monday (5/2) unless someone gets to it before me...

ankur’s picture

Fix committed to CVS HEAD.

Diff to previous for location.module:
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/location/loca...

-Ankur Rishi

Anonymous’s picture