summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-03-27 09:25:36 -0400
committerJames Moger <james.moger@gitblit.com>2014-03-27 09:25:36 -0400
commit478ba80a807868f1775fdf4df665b596248fbeea (patch)
treef360b7c6e474c99ea92d6b4922c6a26e7ab31584 /src
parente4b0ae020290abfff26ef8b8f35485d277e4da62 (diff)
downloadgitblit-478ba80a807868f1775fdf4df665b596248fbeea.tar.gz
gitblit-478ba80a807868f1775fdf4df665b596248fbeea.zip
Fix repository mailing list editing which prevented field reset
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
index f860eeb3..1f37763a 100644
--- a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
@@ -339,7 +339,9 @@ public class EditRepositoryPage extends RootSubPage {
// set author metric exclusions
String ax = metricAuthorExclusions.getObject();
- if (!StringUtils.isEmpty(ax)) {
+ if (StringUtils.isEmpty(ax)) {
+ repositoryModel.metricAuthorExclusions = new ArrayList<String>();
+ } else {
Set<String> list = new HashSet<String>();
for (String exclusion : StringUtils.getStringsFromValue(ax, " ")) {
if (StringUtils.isEmpty(exclusion)) {
@@ -356,7 +358,9 @@ public class EditRepositoryPage extends RootSubPage {
// set mailing lists
String ml = mailingLists.getObject();
- if (!StringUtils.isEmpty(ml)) {
+ if (StringUtils.isEmpty(ml)) {
+ repositoryModel.mailingLists = new ArrayList<String>();
+ } else {
Set<String> list = new HashSet<String>();
for (String address : ml.split("(,|\\s)")) {
if (StringUtils.isEmpty(address)) {