From 7febf59256ffd5ab091b4d1d687796e6abb7edf4 Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 7 Apr 2014 23:42:16 -0400 Subject: [PATCH] Redirect to Summary page after editing a repository --- releases.moxie | 1 + .../java/com/gitblit/wicket/pages/EditRepositoryPage.java | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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)); + } } }; -- 2.39.5