I used File Force inside a Field Group, and experienced that the Field Group was showing (as empty) also when any/no file was attached to the field, and File Force: Table of Files used as view widget.
This behavior is wrong, as the Field Group shouldn't display/show at all. I experienced this just with File Force: Table of Files options,
and arrived to the conclusion that anything should happen in "file_force_field_formatter_view" function, when the passed $items array is empty … (it seems to happen for the 'file_force_file_table' switch case in the module).

I just introduced an if condition with !empty($items) to all the "file_force_field_formatter_view", and now everything works nice for me.
I am not so clever to pack patches, thus simply attach my updated "file_force.module" zipped file.

I hope all this is correct, and that this (or any equally functional solution) might be committed to the next dev version of the File Force Download module.

best regards …

CommentFileSizeAuthor
file_force.module.zip1.89 KBitamair

Comments

itamair’s picture

Issue summary: View changes

syntax correction

arski’s picture

Title: Little patch to make File Force: Table of Files compliant with Fields Group » Don't display table of files if there are none
Category: feature » bug
Status: Active » Fixed

Mhh, I see this was adjusted sometime in the File module. Applied the same fix and should be fine again.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

syntax correction