Hello all
I have the latest dev from fago, and what happens to me is this.
I have one content type with a cck field "field collection" with unlimited values ( kind of like having a list of products I can add )
Then, this "field collection" has also inside a cck field "field collection" , with just one value.
When creating a new node from the main content type I fill one field collection, after that I "Add Another Item"
If I click remove on this last item ( without filling anything ), it doesn't disappear, ajax does something but the field stays the same..
When I click a second time what it does is, is it saves my main node form.
What I saw on the module was that the first time I click "Remove" the button comes with info that is of type "submit", and name "Remove."
The second time this changes and it says it's of type "submit", and name "Save."
I am talking about this piece of code :
// Get the information on what we're removing.
$button = $form_state['triggering_element'];
And I was debugging on these 2 functions : field_collection_remove_js and field_collection_remove_submit
Thanks for your time.. and bear with me, I'm new on this..
Comments
Comment #1
bradallenfisher commentedsame issue here. remove button is not doing as expected.
Comment #2
tim.plunkettI've found many different scenarios that all seem to be incarnations of the same bug. I'm marking this as a duplicate to try and focus efforts.
#1675522: Remove button broken if form is rebuilt (via ajax or failed validation)