Skip to content

Commit dd15dce

Browse files
committed
Update Search.java
1 parent 12ba65c commit dd15dce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/java/hudson/search/Search.java

+5
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ public void doSuggest(StaplerRequest2 req, StaplerResponse2 rsp, @QueryParameter
161161
Result r = new Result();
162162
for (SuggestedItem item : getSuggestions(req, query)) {
163163
String symbolName = item.item.getSearchIcon();
164+
165+
if (symbolName == null || !symbolName.startsWith("symbol-")) {
166+
symbolName = "symbol-search";
167+
}
168+
164169
r.suggestions.add(new Item(item.getPath(), item.getUrl(), "",
165170
Symbol.get(new SymbolRequest.Builder().withRaw(symbolName).build())));
166171
}

0 commit comments

Comments
 (0)