Great module and extremely helpful.
I have run into 1 slight issue. I have looked through most of the issues and cannot see a case such as the one I have found.
Currently I am using a view which renders with the "Table of field collection items" formatter. All works as intended when there is data however when there is no data the labels which used to be inside the thead are rendered without a thead tag and inside the tbody tag:
With Data:
<table>
<thead>
<tr>
<th>Column 1</td>
<th>Column 2</td>
<th>Column 3</td>
</tr>
</thead>
<tbody>
</tbody>
</table>Without Data:
<table>
<tbody>
<tr>
<th>Column 1</td>
<th>Column 2</td>
<th>Column 3</td>
</tr>
</tbody>
</table>Is there an easy fix for this as this just seems to be a small bug?
Comments
Comment #1
glynster commentedAny ideas?
The logic in my eyes is no data then nothing should be printed.
Comment #1.0
glynster commentedFixed formatting.
Comment #2
kristofferwiklund commentedI have tried your setup.
- If the node is viewed directly, nothing is displayed.
- If the node is in a view and is displayed using rendering the default view mode, nothing is displayed
- If the node is in a view and is displayed using fields I get the same problem as you. Header is printed in tbody.
The work around is to not use fields in views and instead display a view mode.
The problem must come from how views is handling the data. That a empty row from the database is not correctly sent to field_collection_table.