]> source.dussan.org Git - gitblit.git/commitdiff
Fixed double enumeration of repositories on dashboard page
authorJames Moger <james.moger@gitblit.com>
Wed, 12 Jun 2013 21:19:15 +0000 (17:19 -0400)
committerJames Moger <james.moger@gitblit.com>
Wed, 12 Jun 2013 21:19:15 +0000 (17:19 -0400)
src/main/java/com/gitblit/wicket/pages/DashboardPage.java

index 66bbf7347ce28471f61f5af6a81020a03e5c19ba..5d838391b11e68d582187d403fb9253e0c68f6b7 100644 (file)
@@ -124,7 +124,7 @@ public class DashboardPage extends RootPage {
                // parameters\r
                int daysBack = params == null ? 0 : WicketUtils.getDaysBack(params);\r
                if (daysBack < 1) {\r
-                       daysBack = 14;\r
+                       daysBack = 7;\r
                }\r
                Calendar c = Calendar.getInstance();\r
                c.add(Calendar.DATE, -1*daysBack);\r
@@ -136,7 +136,7 @@ public class DashboardPage extends RootPage {
                List<RepositoryModel> owned = new ArrayList<RepositoryModel>();\r
                List<RepositoryModel> active = new ArrayList<RepositoryModel>();\r
 \r
-               for (RepositoryModel model : GitBlit.self().getRepositoryModels(user)) {\r
+               for (RepositoryModel model : getRepositoryModels()) {\r
                        if (model.isUsersPersonalRepository(user.username) || model.isOwner(user.username)) {\r
                                owned.add(model);\r
                        }\r