From 0bc524ceea6d6a135a55c629380ca4449fdb2c4e Mon Sep 17 00:00:00 2001 From: "axel.rutz" <axel.rutz@229048.no-reply.drupal.org> Date: Mon, 20 Aug 2012 18:32:28 +0200 Subject: [PATCH] Issue #1739704 by axel.rutz: Fixed Node lookup by title in Nodeprocessor does not respect nodetype. --- plugins/FeedsNodeProcessor.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/FeedsNodeProcessor.inc b/plugins/FeedsNodeProcessor.inc index 2a185dbb..01457e6a 100644 --- a/plugins/FeedsNodeProcessor.inc +++ b/plugins/FeedsNodeProcessor.inc @@ -355,7 +355,7 @@ class FeedsNodeProcessor extends FeedsProcessor { $nid = db_query("SELECT nid FROM {node} WHERE nid = :nid", array(':nid' => $value))->fetchField(); break; case 'title': - $nid = db_query("SELECT nid FROM {node} WHERE title = :title", array(':title' => $value))->fetchField(); + $nid = db_query("SELECT nid FROM {node} WHERE title = :title AND type = :type", array(':title' => $value, ':type' => $this->config['content_type']))->fetchField(); break; case 'feeds_source': if ($id = feeds_get_importer_id($this->config['content_type'])) { -- GitLab