Skip to content
Snippets Groups Projects
Commit da6e3ac5 authored by Alex Barth's avatar Alex Barth
Browse files

Make sure expected values are populated.

parent 23b4b715
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,8 @@ function filefield_feeds_set_target($node, $field_name, $value) { ...@@ -65,6 +65,8 @@ function filefield_feeds_set_target($node, $field_name, $value) {
$target_dir = filefield_widget_file_path($field, user_load($node->uid)); $target_dir = filefield_widget_file_path($field, user_load($node->uid));
$info = field_file_save_file($enclosure->getFile(), array(), $target_dir); $info = field_file_save_file($enclosure->getFile(), array(), $target_dir);
if ($info) { if ($info) {
$info['list'] = array();
$info['data'] = array('description' => '');
if ($field['list_field']) { if ($field['list_field']) {
$info['list'] = $field['list_default']; $info['list'] = $field['list_default'];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment