From: James Moger Date: Tue, 8 Apr 2014 03:42:16 +0000 (-0400) Subject: Redirect to Summary page after editing a repository X-Git-Tag: v1.5.0~78^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7febf59256ffd5ab091b4d1d687796e6abb7edf4;p=gitblit.git Redirect to Summary page after editing a repository --- diff --git a/releases.moxie b/releases.moxie index fc679ef1..ee125355 100644 --- a/releases.moxie +++ b/releases.moxie @@ -16,6 +16,7 @@ r22: { changes: - Specify the --dailyLogFile option for the Ubuntu and CentOS service scripts (issue-348) - The ticket close-on-push commit message regular expression is now configurable by a setting (issue-404) + - Redirect to summary page on edit repository (issue-405) - Option to allow LDAP users to directly authenticate without performing LDAP searches (pr-162) - Replace JCommander with args4j to be consistent with other tools (ticket-28) additions: diff --git a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java index 1f37763a..b08daef2 100644 --- a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java +++ b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java @@ -427,7 +427,11 @@ public class EditRepositoryPage extends RootSubPage { return; } setRedirect(false); - setResponsePage(RepositoriesPage.class); + if (isCreate) { + setResponsePage(RepositoriesPage.class); + } else { + setResponsePage(SummaryPage.class, WicketUtils.newRepositoryParameter(repositoryModel.name)); + } } };