Skip to content

Instantly share code, notes, and snippets.

@andypost
Created October 2, 2019 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andypost/aecf958378e5918f74d6897c9861792a to your computer and use it in GitHub Desktop.
Save andypost/aecf958378e5918f74d6897c9861792a to your computer and use it in GitHub Desktop.
diff --git a/core/modules/help_topics/src/Plugin/Search/HelpSearch.php b/core/modules/help_topics/src/Plugin/Search/HelpSearch.php
index 61d8d67a1e..5b0ca18622 100644
--- a/core/modules/help_topics/src/Plugin/Search/HelpSearch.php
+++ b/core/modules/help_topics/src/Plugin/Search/HelpSearch.php
@@ -210,7 +210,7 @@ protected function findResults() {
->condition('i.langcode', $this->languageManager->getCurrentLanguage()->getId())
->extend(SearchQuery::class)
->extend(PagerSelectExtender::class);
- $query->innerJoin('help_search_items', 'hsi', 'i.sid = hsi.sid AND i.type = :type', [':type' => $this->getType()]);
+ $query->innerJoin('help_search_items', 'hsi', 'i.sid = hsi.sid AND i.type in (:types)', [':types' => $this->getTypes()]);
if ($denied_permissions) {
$query->condition('hsi.permission', $denied_permissions, 'NOT IN');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment