Skip to content

Commit

Permalink
CLOG-230 Clog error when compiling on Sakai 25
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusmmp committed Jan 13, 2025
1 parent 3218fd9 commit 1427c6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion impl/src/java/org/sakaiproject/clog/impl/SakaiProxyImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
Expand Down Expand Up @@ -114,6 +115,8 @@ public class SakaiProxyImpl implements SakaiProxy {

private NotificationService notificationService;

private static final String SEARCH_TOOL = "clog";

public void init() {

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

try {
SearchList sl = searchService.search(searchTerms, contexts, null, 0, 50, "normal", "normal");
SearchList sl = searchService.search(searchTerms, contexts, Collections.singletonList(SEARCH_TOOL), 0, 50, "normal", "normal");
for (Iterator i = sl.iterator(0); i.hasNext();) {
SearchResult sr = (SearchResult) i.next();

Expand Down

0 comments on commit 1427c6a

Please sign in to comment.