Nice module. After switching the format of a field collection to a table, I got the following errors though:

Notice: Undefined index: view modes in field_view_mode_settings() (line 627 of C:\wamp\www\mysite\modules\field\field.module).
Warning: Invalid argument supplied for foreach() in field_view_mode_settings() (line 627 of C:\wamp\www\mysite\modules\field\field.module).

CommentFileSizeAuthor
#2 field-collection-table-1877218.patch1.03 KBlarowlan

Comments

larowlan’s picture

This seems to relate to the update to field_collection to support revisions, prior to that there was no warning.

larowlan’s picture

Status: Active » Needs review
StatusFileSize
new1.03 KB

Patch fixes the issue, not sure what it breaks.
Basically to reproduce, enable field_collection, field_collection_table and workbench_moderation.
Create a new draft of a moderated node that has field collections on it, view the draft.

robcarr’s picture

Patch worked for me. Haven't found any collateral damage.

+1 for RTBC - other please review

a.milkovsky’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta1
Status: Needs review » Reviewed & tested by the community

++
Thanks. #2 works for me too.
I think this small patch should be added to module.

nancydru’s picture

I was not using workbench_moderation, so that is not really in the equation.

nancydru’s picture

Applied cleanly to current checkout, but with offset of 34.

katannshaw’s picture

Patch #2 worked for me. Thanks larowlan!

presleyd’s picture

#2 worked for me also.

lunk rat’s picture

Issue summary: View changes

Please commit #2.

siwinski’s picture

#2 worked for me as well. Thanks!

nancydru’s picture

Not working for me.

joelstein’s picture

#2 fixes the notices, thanks!

Yuri’s picture

I tried to apply the patch. but it cannot be applied any more to the latest dev of Field Collection Table.

kevineinarsson’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Patched dev, thanks guys.

joelpittet’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.