From 54025f945b48c1dc203e87ed544b4cb297849461 Mon Sep 17 00:00:00 2001 From: megachriz <megachriz@654114.no-reply.drupal.org> Date: Thu, 18 Apr 2013 01:35:41 -0700 Subject: [PATCH] Issue #1362378 by gordon, colan, Sutharsan, MegaChriz | mukesh.agarwal17: Added is_new addtribute to feeds_item. --- plugins/FeedsProcessor.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/FeedsProcessor.inc b/plugins/FeedsProcessor.inc index 30dbd78f..d90e5441 100755 --- a/plugins/FeedsProcessor.inc +++ b/plugins/FeedsProcessor.inc @@ -210,6 +210,7 @@ abstract class FeedsProcessor extends FeedsPlugin { // recently processed entity. The only carryover is the entity_id. $this->newItemInfo($entity, $source->feed_nid, $hash); $entity->feeds_item->entity_id = $entity_id; + $entity->feeds_item->is_new = FALSE; } // Build a new entity. @@ -725,6 +726,7 @@ abstract class FeedsProcessor extends FeedsPlugin { */ protected function newItemInfo($entity, $feed_nid, $hash = '') { $entity->feeds_item = new stdClass(); + $entity->feeds_item->is_new = TRUE; $entity->feeds_item->entity_id = 0; $entity->feeds_item->entity_type = $this->entityType(); $entity->feeds_item->id = $this->id; -- GitLab