Needs review
Project:
Inline
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 May 2014 at 09:24 UTC
Updated:
8 May 2014 at 09:24 UTC
I'm not sure why but this module was allowing only image fields to be used. Though it perfectly fine works with any file.
I've create patch to allow any file type.
Also there was some extra issue. Maybe it needs to come as separate patch.
function _inline_fileobj(&$node, $field_name, $image_name) {
// Named file reference.
- foreach ($node->{$field_name}[$node->language] as $file) {
+ $field = field_get_items('node', $node, $field_name);
foreach ($field as $file) {
for translated nodes (if entity translation is not enabled) fields comes with language 'UND' so this $node->{$field_name}[$node->language] is not correct
| Comment | File | Size | Author |
|---|---|---|---|
| inline-allow_any_file_upload.patch | 1.5 KB | MantasK |