Closed (fixed)
Project:
Field collection
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2011 at 17:37 UTC
Updated:
19 Oct 2015 at 19:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mattsmith3 commentedsame issue here
Comment #2
mattsmith3 commentedok.. did some testing. When first setting up a field collection with a number of values set to 1, the labels were printing in the html, but placed behind the actual fields themselves. After setting field collection to tables (http://drupal.org/project/field_collection_table), viewing the node/add form again, then disabling tables the labels showed up. After this.. problem of missing labels went away completely.
Comment #3
emilekott commentedWe have the same issue.
Singe cardinality field collections on the node/edit form are not in a table, and the label is missing so it is unclear that they are in a collection.
This issue does not occur with multi valued or unlimited cardinality collections.
Have tried the field_collection_table suggestion above and no fix.
Have also tried 7.x-1.0-beta2 and dev - no fix presently.
Comment #4
drikc commentedIt appear that the field miss its '#type' parameter when the cardinality is set to 1. So the attached patch propose to add one in this case.
Comment #5
tim.plunkettThat did the trick! Thanks @drikc!
http://drupalcode.org/project/field_collection.git/commit/3d82aba
Comment #7
knalstaaf commentedThis patch isn't working anymore in the latest dev ( 2014-Apr-16).
The labels are missing on my edit page.
EDIT: the label has the class "element-invisible":
<label class="element-invisible" (...)>That's why it's not shown.
I have no idea why this is, and how I can disable this behaviour.
Comment #8
knalstaaf commentedThis only occurs when the widget type of the Field collection-field (in the content type) is set to table. When it's set to embedded the labels appear just fine.
Is there a specific reason for this?
Comment #10
jmuzz commentedThe field collection module does not supply a table widget. Try filing an issue in the module that supplies the table widget.
If this issue can be reproduced with only the field collections module then feel free to reopen with steps to reproduce the problem.