Skip to content
Snippets Groups Projects
Commit 6156b5d5 authored by Tobby Hagler's avatar Tobby Hagler
Browse files

Issue #1011958 by David Goode: Allow hashes to be updated when content in a feed is updated.

parent 03e03c2e
No related branches found
No related tags found
No related merge requests found
......@@ -119,11 +119,10 @@ abstract class FeedsProcessor extends FeedsPlugin {
}
else {
$entity = $this->entityLoad($source, $entity_id);
// If an existing item info can't be loaded, create one.
if (!$this->loadItemInfo($entity)) {
$this->newItemInfo($entity, $source->feed_nid, $hash);
$entity->feeds_item->entity_id = $entity_id;
}
// The feeds_item table is always updated with the info for the most recently processed entity.
// The only carryover is the entity_id.
$this->newItemInfo($entity, $source->feed_nid, $hash);
$entity->feeds_item->entity_id = $entity_id;
}
$this->map($source, $parser_result, $entity);
$this->entityValidate($entity);
......
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