From da6e3ac51f768b37608dad2f50336964fb4bfc99 Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Thu, 28 Jan 2010 20:07:08 +0000
Subject: [PATCH] Make sure expected values are populated.

---
 mappers/filefield.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mappers/filefield.inc b/mappers/filefield.inc
index ed21fe7b..5b1d1871 100644
--- a/mappers/filefield.inc
+++ b/mappers/filefield.inc
@@ -65,6 +65,8 @@ function filefield_feeds_set_target($node, $field_name, $value) {
       $target_dir = filefield_widget_file_path($field, user_load($node->uid));
       $info = field_file_save_file($enclosure->getFile(), array(), $target_dir);
       if ($info) {
+        $info['list'] = array();
+        $info['data'] = array('description' => '');
         if ($field['list_field']) {
           $info['list'] = $field['list_default'];
         }
-- 
GitLab