James Moger
2014-03-27 478ba80a807868f1775fdf4df665b596248fbeea
Fix repository mailing list editing which prevented field reset
2 files modified
9 ■■■■ changed files
releases.moxie 1 ●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java 8 ●●●● patch | view | raw | blame | history
releases.moxie
@@ -10,6 +10,7 @@
    text: ~
    security: ~
    fixes:
    - Repository mailing lists could not be reset from the Edit Repository page (issue-399)
    - Ensure the Lucene ticket index is updated on repository deletion.
    changes:
    - Option to allow LDAP users to directly authenticate without performing LDAP searches
src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
@@ -339,7 +339,9 @@
                    // 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 @@
                    // 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)) {