Closed (duplicate)
Project:
Field collection
Version:
7.x-1.0-beta5
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2013 at 22:06 UTC
Updated:
3 Nov 2014 at 16:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
artis commentedFixed spelling error in title.
Comment #2
ludo.rI confirm this bug.
I've set my field collection to 7 values, and the form only shows 6 field collections. I've noticed this bug since upgrade from beta4 to beta5.
There is another related issue : #1888988: Alter Field with hook_form_alter
Comment #3
ludo.rThere is a new option on the field widget settings form, right under the number of values.
Unchecking "Hide blank items" solves the problem.
But I guess this is just a workaround, as this is still a bug.
Comment #4
ericclaeren commentedHi, I also can confirm this bug, seems quite an error. Has anybody already found an solution for this problem?
Comment #5
TeeganB commentedI have also noticed this bug. I had to untick hide blank items to get the correct value to display.
Comment #6
sydneyshan commentedI wrote this little module to overcome these issues before the 'hide blank items' option was added. I still think it does a far better job than the recent addition.
7.x-1.0-beta5 does not allow you to remove the last field collection item even if you have set the field to 'not required' and 'unlimited'. By using the attached module you can have field collections with zero entries if required, and the bug above shouldn't occur either.
Comment #7
adamb commentedI have experienced noticed this bug. Unticking 'hide blank items' gets the correct value to display.
Comment #8
timodwhit commentedI am currently experiencing this issue as well.
Comment #9
mike.davis commentedLooking at the functionality of the 'Hide blank items', it only seems to be relevant for the 'unlimited' option.
Here is a patch that hides the 'Hide blank items' checkbox and sets its value to be 'checked' as there is no reason for it to not be really.
Comment #10
jmuzz commentedI am not sure I agree with that explanation for the option, and I've explained why in #2177963: 'Hide blank items' setting doesn't work correctly.. If you can shed some more light on this please post some more details there.