Closed (works as designed)
Project:
Address Empty
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2014 at 23:37 UTC
Updated:
11 Mar 2014 at 20:37 UTC
Jump to comment: Most recent
Comments
Comment #1
deanflory commentedklonos posted a link to a related issue for D8 where they're trying to work out the "none" option for fields:
https://drupal.org/node/1379070
I'm not confident this will get into D7 this year+ since it's been an issue for years now.
Comment #2
robert castelo commentedHi MXT,
I've developed this module for multiple addresses, so should work.
What do you mean 'new "empty" address are always added in node edit' - do you mean saved in the database or just showing as options in the form?
Comment #3
deanflory commentedI think what he means is that each time a new address is entered or if country is required, that when you go back to editing the node, more and more sets of addressfield fields are displayed more than the initial 2 (for multivalue). Since there is no way to remove addressfield entries they can keep adding up yet are blank.
Comment #4
mxtSorry guys, finally I went to another solution:
#968112: Allow addressfield to be optional
The above solution definitively works very well with no issues at all.
Returning to this module, I think the errors were triggered because my nodes also have a corresponding translation with entity_translation (with addressfield field not translated): for some reasons, when I saved a node, it duplicates "country" entries also for every translation... Anyway I can't remember exactly the errors because I immediately uninstalled this in favour of the solution reachable following the above link.
Thank you in any case for your work!
Comment #5
robert castelo commented