summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/pages/EditTeamPage.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-11-25 09:12:47 -0500
committerJames Moger <james.moger@gitblit.com>2013-11-29 11:05:51 -0500
commit5ae529ea8a73edc8e2bb1e7f9576e51c9d870224 (patch)
tree683d1efa15f9c64da9de31ad3366dbb92d2858c9 /src/main/java/com/gitblit/wicket/pages/EditTeamPage.java
parent3a9e76b63f09a32e0b6812e18ffff00fab8e58e6 (diff)
downloadgitblit-5ae529ea8a73edc8e2bb1e7f9576e51c9d870224.tar.gz
gitblit-5ae529ea8a73edc8e2bb1e7f9576e51c9d870224.zip
Change IGitblit API to be more distinct from IUserService
Change-Id: I8fb38fb6a3dae74ad7a12b045b054373b9b02518
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/EditTeamPage.java')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/EditTeamPage.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/EditTeamPage.java b/src/main/java/com/gitblit/wicket/pages/EditTeamPage.java
index 232dbe3b..82b28fc4 100644
--- a/src/main/java/com/gitblit/wicket/pages/EditTeamPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/EditTeamPage.java
@@ -196,7 +196,11 @@ public class EditTeamPage extends RootSubPage {
teamModel.postReceiveScripts.addAll(postReceiveScripts);
try {
- app().gitblit().updateTeamModel(oldName, teamModel, isCreate);
+ if (isCreate) {
+ app().gitblit().addTeam(teamModel);
+ } else {
+ app().gitblit().reviseTeam(oldName, teamModel);
+ }
} catch (GitBlitException e) {
error(e.getMessage());
return;