Skip to content

Commit 596ecba

Browse files
committed
CLOG-230 Clog error when compiling on Sakai 25
1 parent 7c9f005 commit 596ecba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

impl/src/java/org/sakaiproject/clog/impl/SakaiProxyImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import java.sql.SQLException;
2121
import java.util.ArrayList;
2222
import java.util.Collection;
23+
import java.util.Collections;
2324
import java.util.HashMap;
2425
import java.util.Iterator;
2526
import java.util.List;
@@ -114,6 +115,8 @@ public class SakaiProxyImpl implements SakaiProxy {
114115

115116
private NotificationService notificationService;
116117

118+
private static final String SEARCH_TOOL = "clog";
119+
117120
public void init() {
118121

119122
NotificationEdit ne = notificationService.addTransientNotification();
@@ -523,7 +526,7 @@ public List<SearchResult> searchInCurrentSite(String searchTerms) throws Invalid
523526
contexts.add(getCurrentSiteId());
524527

525528
try {
526-
SearchList sl = searchService.search(searchTerms, contexts, null, 0, 50, "normal", "normal");
529+
SearchList sl = searchService.search(searchTerms, contexts, Collections.singletonList(SEARCH_TOOL), 0, 50, "normal", "normal");
527530
for (Iterator i = sl.iterator(0); i.hasNext();) {
528531
SearchResult sr = (SearchResult) i.next();
529532

0 commit comments

Comments
 (0)