Created
October 2, 2019 14:40
-
-
Save andypost/aecf958378e5918f74d6897c9861792a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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