Download & Extend

Problems with handling of multiple addresses in CCK

Project:Addresses
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I've defined a CCK field with a Widget Type of Address Field with the option set to allow an unlimited number of values (so multiple addresses could be set up), and encountered two problems.

1. On a new node, two blank (sets of) address fields appear by default, followed by the "Add another item" button. There seems to be no way to save just one. I would have expected just one (set of) address fields to appear at first.

2. There is no REMOVE button / option offered to allow a user to delete addresses that should no longer be listed. This is normal with other multiple-value fields (for example, images or files).

Thanks for your work on this module. The recent fix for State/Province selection is particularly good to see.

Comments

#1

ailgm,

Thank you for your report. For the time being this will be something that will take me some time to get to - there are currently several issues I am working on. CCK and Views integrations are the weakest points for the Addresses module currently and now that the State/Province Select Field is running it will be my primary target.

I'm glad you've enjoyed the State/Province selection field, it will be released in the next update to come soon.

#2

As a note on your point #1, CCK displays fields set to unlimited with two fields - this occurs with Addresses too. As far as saving, I will need to update the logic to allow empty addresses and go based on the required CCK setting.

I would like to have only one address shown by default so I'll see what can be done with CCK in this regard, if anything.

#3

Component:User interface» Code

I also have an issue where the second address puts in United States as the country if it is left blank. Any reason for this?