]> source.dussan.org Git - gitblit.git/commitdiff
Redirect to Summary page after editing a repository 38/38/1
authorJames Moger <james.moger@gitblit.com>
Tue, 8 Apr 2014 03:42:16 +0000 (23:42 -0400)
committerJames Moger <james.moger@gitblit.com>
Tue, 8 Apr 2014 03:42:16 +0000 (23:42 -0400)
releases.moxie
src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java

index fc679ef102d1666447ae2a371e640651751775bb..ee125355c9736a34544168cb8ee289877f0e4d5e 100644 (file)
@@ -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:
index 1f37763a8c1f05de551121b23b66e6615058a1e3..b08daef2d384a0fe5451e08964731d4beb55862e 100644 (file)
@@ -427,7 +427,11 @@ public class EditRepositoryPage extends RootSubPage {
                                        return;\r
                                }\r
                                setRedirect(false);\r
-                               setResponsePage(RepositoriesPage.class);\r
+                               if (isCreate) {\r
+                                       setResponsePage(RepositoriesPage.class);\r
+                               } else {\r
+                                       setResponsePage(SummaryPage.class, WicketUtils.newRepositoryParameter(repositoryModel.name));\r
+                               }\r
                        }\r
                };\r
 \r