Posted by artis on January 16, 2013 at 10:06pm
7 followers
| Project: | Field collection |
| Version: | 7.x-1.0-beta5 |
| Component: | Code |
| Category: | bug report |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
If I set the field collection "number of values" to 5, then only 4 field collections will show on the entity edit form. In order to get 5 entries I have to set it to 6. This seems to been a new bug introduced recently.
I haven't tried the dev version since it's date is the same at the beta5.
Comments
#1
Fixed spelling error in title.
#2
I 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
#3
There 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.
#4
Hi, I also can confirm this bug, seems quite an error. Has anybody already found an solution for this problem?
#5
I have also noticed this bug. I had to untick hide blank items to get the correct value to display.
#6
I 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.
#7
I have experienced noticed this bug. Unticking 'hide blank items' gets the correct value to display.