Skip to content
Snippets Groups Projects
Commit 54025f94 authored by megachriz's avatar megachriz Committed by Chris Leppanen
Browse files

Issue #1362378 by gordon, colan, Sutharsan, MegaChriz | mukesh.agarwal17:...

Issue #1362378 by gordon, colan, Sutharsan, MegaChriz | mukesh.agarwal17: Added is_new addtribute to feeds_item.
parent 69261d75
No related branches found
No related tags found
No related merge requests found
...@@ -210,6 +210,7 @@ abstract class FeedsProcessor extends FeedsPlugin { ...@@ -210,6 +210,7 @@ abstract class FeedsProcessor extends FeedsPlugin {
// recently processed entity. The only carryover is the entity_id. // recently processed entity. The only carryover is the entity_id.
$this->newItemInfo($entity, $source->feed_nid, $hash); $this->newItemInfo($entity, $source->feed_nid, $hash);
$entity->feeds_item->entity_id = $entity_id; $entity->feeds_item->entity_id = $entity_id;
$entity->feeds_item->is_new = FALSE;
} }
// Build a new entity. // Build a new entity.
...@@ -725,6 +726,7 @@ abstract class FeedsProcessor extends FeedsPlugin { ...@@ -725,6 +726,7 @@ abstract class FeedsProcessor extends FeedsPlugin {
*/ */
protected function newItemInfo($entity, $feed_nid, $hash = '') { protected function newItemInfo($entity, $feed_nid, $hash = '') {
$entity->feeds_item = new stdClass(); $entity->feeds_item = new stdClass();
$entity->feeds_item->is_new = TRUE;
$entity->feeds_item->entity_id = 0; $entity->feeds_item->entity_id = 0;
$entity->feeds_item->entity_type = $this->entityType(); $entity->feeds_item->entity_type = $this->entityType();
$entity->feeds_item->id = $this->id; $entity->feeds_item->id = $this->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