Skip to content
Snippets Groups Projects
Commit 84c6d225 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#205199 by David_Rothstein: leftover links were not removed in the reindexing...

#205199 by David_Rothstein: leftover links were not removed in the reindexing process properly (search module)
parent 641fdad0
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -602,7 +602,7 @@ function search_index($sid, $type, $text) { ...@@ -602,7 +602,7 @@ function search_index($sid, $type, $text) {
} }
} }
// Any left-over links in $links no longer exist. Delete them and mark the nodes for reindexing. // Any left-over links in $links no longer exist. Delete them and mark the nodes for reindexing.
foreach ($links as $nid) { foreach ($links as $nid => $caption) {
db_query("DELETE FROM {search_node_links} WHERE sid = %d AND type = '%s' AND nid = %d", $sid, $type, $nid); db_query("DELETE FROM {search_node_links} WHERE sid = %d AND type = '%s' AND nid = %d", $sid, $type, $nid);
search_touch_node($nid); search_touch_node($nid);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment