From 615622c087b75888cb44063a935b1a497834fa23 Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Mon, 16 Nov 2009 14:52:38 +0000
Subject: [PATCH] #631050 z.stolar: Add feed_nid on node_load of a feed item.

---
 CHANGELOG.txt | 1 +
 feeds.module  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 538e52a5..b7801be9 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -3,6 +3,7 @@
 Feeds 6.x 1.x, XXXX-XX-XX
 --------------------------
 
+- #631050 z.stolar: Add feed_nid on node_load of a feed item.
 - #631248 velosol: Set log message when creating a node in FeedsNodeProcessor.
 
 Feeds 6.x 1.0 Alpha 7, 2009-11-04
diff --git a/feeds.module b/feeds.module
index ca2c1eb4..faea5119 100644
--- a/feeds.module
+++ b/feeds.module
@@ -315,7 +315,7 @@ function feeds_nodeapi(&$node, $op, $form) {
 function _feeds_nodeapi_node_processor($node, $op) {
   switch ($op) {
     case 'load':
-      if ($result = db_fetch_object(db_query('SELECT imported, guid, url FROM {feeds_node_item} WHERE nid = %d', $node->nid))) {
+      if ($result = db_fetch_object(db_query('SELECT imported, guid, url, feed_nid FROM {feeds_node_item} WHERE nid = %d', $node->nid))) {
         $node->feeds_node_item = $result;
       }
       break;
-- 
GitLab