From b26eda0dcd3ee91054895d03f7930b0b1bd03733 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 28 Feb 2014 12:50:28 -0500 Subject: [PATCH] Exclude commit id from all author search links --- src/main/java/com/gitblit/wicket/panels/ActivityPanel.java | 2 +- src/main/java/com/gitblit/wicket/panels/HistoryPanel.java | 2 +- src/main/java/com/gitblit/wicket/panels/SearchPanel.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gitblit/wicket/panels/ActivityPanel.java b/src/main/java/com/gitblit/wicket/panels/ActivityPanel.java index bbb7608d..35513bb3 100644 --- a/src/main/java/com/gitblit/wicket/panels/ActivityPanel.java +++ b/src/main/java/com/gitblit/wicket/panels/ActivityPanel.java @@ -90,7 +90,7 @@ public class ActivityPanel extends BasePanel { String author = commit.getAuthorIdent().getName(); LinkPanel authorLink = new LinkPanel("author", "list", author, GitSearchPage.class, WicketUtils.newSearchParameter(commit.repository, - commit.getName(), author, Constants.SearchType.AUTHOR), true); + null, author, Constants.SearchType.AUTHOR), true); setPersonSearchTooltip(authorLink, author, Constants.SearchType.AUTHOR); commitItem.add(authorLink); diff --git a/src/main/java/com/gitblit/wicket/panels/HistoryPanel.java b/src/main/java/com/gitblit/wicket/panels/HistoryPanel.java index ecdad523..03502e64 100644 --- a/src/main/java/com/gitblit/wicket/panels/HistoryPanel.java +++ b/src/main/java/com/gitblit/wicket/panels/HistoryPanel.java @@ -159,7 +159,7 @@ public class HistoryPanel extends BasePanel { String author = entry.getAuthorIdent().getName(); LinkPanel authorLink = new LinkPanel("commitAuthor", "list", author, GitSearchPage.class, - WicketUtils.newSearchParameter(repositoryName, objectId, + WicketUtils.newSearchParameter(repositoryName, null, author, Constants.SearchType.AUTHOR)); setPersonSearchTooltip(authorLink, author, Constants.SearchType.AUTHOR); item.add(authorLink); diff --git a/src/main/java/com/gitblit/wicket/panels/SearchPanel.java b/src/main/java/com/gitblit/wicket/panels/SearchPanel.java index a60cc930..5d0b2de1 100644 --- a/src/main/java/com/gitblit/wicket/panels/SearchPanel.java +++ b/src/main/java/com/gitblit/wicket/panels/SearchPanel.java @@ -93,7 +93,7 @@ public class SearchPanel extends BasePanel { // author search link String author = entry.getAuthorIdent().getName(); LinkPanel authorLink = new LinkPanel("commitAuthor", "list", author, - GitSearchPage.class, WicketUtils.newSearchParameter(repositoryName, objectId, + GitSearchPage.class, WicketUtils.newSearchParameter(repositoryName, null, author, Constants.SearchType.AUTHOR)); setPersonSearchTooltip(authorLink, author, Constants.SearchType.AUTHOR); item.add(authorLink); -- 2.39.5