Skip to content
Snippets Groups Projects
Commit 0bc524ce authored by axel.rutz's avatar axel.rutz Committed by Chris Leppanen
Browse files

Issue #1739704 by axel.rutz: Fixed Node lookup by title in Nodeprocessor does not respect nodetype.

parent aa3dff30
No related branches found
No related tags found
No related merge requests found
......@@ -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'])) {
......
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