From e86fd161d977602329704537726a0a55dc7e34fe Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 7 Apr 2014 23:48:10 -0400 Subject: [PATCH] Redirect on canceling edit repository to Summary Page --- .../java/com/gitblit/wicket/pages/EditRepositoryPage.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java index b08daef2..cd0da5f4 100644 --- a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java +++ b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java @@ -604,7 +604,11 @@ public class EditRepositoryPage extends RootSubPage { @Override public void onSubmit() { - setResponsePage(RepositoriesPage.class); + if (isCreate) { + setResponsePage(RepositoriesPage.class); + } else { + setResponsePage(SummaryPage.class, WicketUtils.newRepositoryParameter(repositoryModel.name)); + } } }; cancel.setDefaultFormProcessing(false); -- 2.39.5