From 6156b5d528cbf61bbb15d97be65e1750aaec2a8c Mon Sep 17 00:00:00 2001 From: Tobby Hagler <tobby.hagler@gmail.com> Date: Tue, 8 Mar 2011 10:07:38 -0500 Subject: [PATCH] Issue #1011958 by David Goode: Allow hashes to be updated when content in a feed is updated. --- plugins/FeedsProcessor.inc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/FeedsProcessor.inc b/plugins/FeedsProcessor.inc index e2a067ee..f283d971 100644 --- a/plugins/FeedsProcessor.inc +++ b/plugins/FeedsProcessor.inc @@ -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); -- GitLab