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 …
| Comment | File | Size | Author |
|---|---|---|---|
| file_force.module.zip | 1.89 KB | itamair |
Comments
Comment #0.0
itamair commentedsyntax correction
Comment #1
arski commentedMhh, I see this was adjusted sometime in the File module. Applied the same fix and should be fine again.
Comment #2.0
(not verified) commentedsyntax correction