Placing a default values in the "Default value" section for "Street" causes it to be displayed on the default node/add page, but when you save the node the value is not saved.

CommentFileSizeAuthor
#2 location_default.patch2.52 KBigor.ro
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

YesCT’s picture

Status: Active » Postponed (maintainer needs more info)

Please check to see if this is still a problem in the new release. If it is, reply with a new summary and set the status back to active.

Also, there seem to have been a lot of "default" type issues, maybe do a search for default in the issue queue and see if another is a duplicate...

http://drupal.org/project/issues/location?order=last_comment_timestamp&s...

igor.ro’s picture

FileSize
2.52 KB

The problem was because of using location_default_location to get empty location.
but as you can mind "empty" and "default" locations are not the same.

Here is the patch

ShaneOnABike’s picture

+1

nilla054’s picture

Title: Default value » default value is loaded back when the node is previewed
Project: Location » Content Construction Kit (CCK)
Version: 6.x-3.x-dev » 6.x-2.9
Component: Code » optionwidgets.module

When adding a new content type, default values are loaded to certain fields. when the user edits the default value and previews it, the new value is reflected in the node preview but the form still holds the default value and when the form is submitted the default value is saved instead of saving the new value.

Form works fine when it is not previewed (new value is saved into the database)

KarenS’s picture

Project: Content Construction Kit (CCK) » Location
Version: 6.x-2.9 » 6.x-3.x-dev
Component: optionwidgets.module » Code

An issue with a patch for the Location module does not belong in the CCK issue queue. If something is wrong with the way default values work in Location fields, that is most likely a Location issue.

rooby’s picture

Status: Postponed (maintainer needs more info) » Needs review

This should be needs review.
The patch still applies with offsets.

I have not a chance to review right now though.

podarok’s picture

Status: Needs review » Active

bot recall

podarok’s picture

Status: Active » Needs review

bot

Status: Needs review » Needs work

The last submitted patch, location_default.patch, failed testing.

legolasbo’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

Closing old D6 issues as D6 is end of life