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

Check for existing items within given feed.

parent fac5e646
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,7 @@ class FeedsDataProcessor extends FeedsProcessor {
*/
protected function existingItemId($source_item, FeedsSource $source) {
foreach ($this->uniqueTargets($source_item) as $target => $value) {
if ($records = $this->handler()->load(array($target => $value))) {
if ($records = $this->handler()->load(array('feed_nid' => $source->feed_nid, $target => $value))) {
return $records[0]['id'];
}
}
......
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