Browse Source

Fix repository mailing list editing which prevented field reset

tags/v1.5.0
James Moger 10 years ago
parent
commit
478ba80a80

+ 1
- 0
releases.moxie View File

text: ~ text: ~
security: ~ security: ~
fixes: 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. - Ensure the Lucene ticket index is updated on repository deletion.
changes: changes:
- Option to allow LDAP users to directly authenticate without performing LDAP searches - Option to allow LDAP users to directly authenticate without performing LDAP searches

+ 6
- 2
src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java View File

// set author metric exclusions // set author metric exclusions
String ax = metricAuthorExclusions.getObject(); String ax = metricAuthorExclusions.getObject();
if (!StringUtils.isEmpty(ax)) {
if (StringUtils.isEmpty(ax)) {
repositoryModel.metricAuthorExclusions = new ArrayList<String>();
} else {
Set<String> list = new HashSet<String>(); Set<String> list = new HashSet<String>();
for (String exclusion : StringUtils.getStringsFromValue(ax, " ")) { for (String exclusion : StringUtils.getStringsFromValue(ax, " ")) {
if (StringUtils.isEmpty(exclusion)) { if (StringUtils.isEmpty(exclusion)) {
// set mailing lists // set mailing lists
String ml = mailingLists.getObject(); String ml = mailingLists.getObject();
if (!StringUtils.isEmpty(ml)) {
if (StringUtils.isEmpty(ml)) {
repositoryModel.mailingLists = new ArrayList<String>();
} else {
Set<String> list = new HashSet<String>(); Set<String> list = new HashSet<String>();
for (String address : ml.split("(,|\\s)")) { for (String address : ml.split("(,|\\s)")) {
if (StringUtils.isEmpty(address)) { if (StringUtils.isEmpty(address)) {

Loading…
Cancel
Save