Skip to content
Snippets Groups Projects
Commit 5f9ebacf authored by Dave Reid's avatar Dave Reid
Browse files

Issue #1134684 by rfay, Dave Reid: Fixed improper parameters for file_field_widget_uri().

parent 76a72d0d
No related branches found
No related tags found
No related merge requests found
......@@ -65,8 +65,11 @@ function file_feeds_set_target($source, $entity, $target, $value) {
list($entity_id, $vid, $bundle_name) = entity_extract_ids($entity->feeds_item->entity_type, $entity);
$instance_info = field_info_instance($entity->feeds_item->entity_type, $target, $bundle_name);
$info = field_info_field($target);
$account = !empty($entity->uid) ? user_load($entity->uid) : NULL;
$destination = file_field_widget_uri($info, $instance_info, $account);
$data = array();
if (!empty($entity->uid)) {
$data[$entity->feeds_item->entity_type] = $entity;
}
$destination = file_field_widget_uri($info, $instance_info, $data);
// Populate entity.
$i = 0;
......
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