In 6.x-3.1-rc1, if you create a default location for a content type and do not edit it when creating a new node with the field, the location field will get stripped out of the node object before it's saved away. But if you edit even portion of the default portions of the location field, the field _will_ get correctly saved away.
Looking in the debugger, it appears that the location information gets stripped away during 'presave' processing. The default information is intact when returning from _content_field_invoke('presave', $node), but gets stripped during _content_field_invoke_default('presave', $node) [as called from content.module, around line 272.]
I don't have patch for this yet, but may get to this.
Comments
Comment #1
kristen polHi Rob,
I just verified the default isn't working for me as well. I am using location-6.x-3.1-rc1.
1) turn on location cck module
2) add location cck field to a content type and set default values for each field
3) create a node of this type and don't change the default values and save
I get this error:
warning: array_filter() [function.array-filter]: The first argument should be an array in /var/www/cvsr/drupal/code/sites/all/modules/location/contrib/location_cck/location_cck.module on line 385.
Good luck,
Kristen
Comment #2
yesct commentedduplicate of #373465: Array errors in location_cck module
(which says something about an april 3rd commit that might fix some of this, so maybe try the dev version)