]> source.dussan.org Git - gitblit.git/commitdiff
Do not drop missing owners from owners palette 50/150/1
authorJames Moger <james.moger@gitblit.com>
Thu, 4 Sep 2014 17:46:49 +0000 (13:46 -0400)
committerJames Moger <james.moger@gitblit.com>
Thu, 4 Sep 2014 17:46:49 +0000 (13:46 -0400)
src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java

index a1c373851d7f70a071b55c3d952a0fedcce3aa11..b5c46ac296331ef54febcb3d5edfc1c9106b3a0e 100644 (file)
@@ -186,15 +186,18 @@ public class EditRepositoryPage extends RootSubPage {
 \r
                // owners palette\r
                List<UserChoice> owners = new ArrayList<UserChoice>();\r
+               List<UserChoice> persons = new ArrayList<UserChoice>();\r
                for (String owner : repositoryModel.owners) {\r
                        UserModel o = app().users().getUserModel(owner);\r
                        if (o != null) {\r
                                owners.add(new UserChoice(o.getDisplayName(), o.username, o.emailAddress));\r
                        } else {\r
-                               owners.add(new UserChoice(owner));\r
+                               UserChoice userChoice = new UserChoice(owner);\r
+                               owners.add(userChoice);\r
+                               persons.add(userChoice);\r
                        }\r
                }\r
-               List<UserChoice> persons = new ArrayList<UserChoice>();\r
+\r
                for (String person : app().users().getAllUsernames()) {\r
                        UserModel o = app().users().getUserModel(person);\r
                        if (o != null) {\r