Active
Project:
References
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2013 at 15:05 UTC
Updated:
16 Feb 2016 at 13:03 UTC
Jump to comment: Most recent
There is a small issue in feeds import. The feeds_item table GUID column is not a unique column, and the values can have dublicates. So the correct version of code for import over GUID should be changed from:
<?php
$result = db_query('SELECT f.entity_id FROM {feeds_item} f WHERE f.'.$match_key.' = :v', array(':v' => $v) );
?>to:
<?php
$entity_types = array_keys($info['bundles']);
$result = db_query('SELECT f.entity_id FROM {feeds_item} f WHERE entity_type in (:entity_type) and f.' . $match_key . ' = :v', array(':entity_type' => $entity_types, ':v' => $v) );
?>
Comments
Comment #1
Alex Andrascu commentedI think this belongs to Feeds ?
Comment #2
megachrizThis referenced code is in the References module. See references.feeds.inc, ± line 278.