From: Maria Odea B. Ching Date: Wed, 15 Aug 2007 08:47:14 +0000 (+0000) Subject: [MRM-374] and [MRM-407] X-Git-Tag: archiva-1.0-beta-2~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=58671364fc9b934f7492a33ae29f0f3f0c111a64;p=archiva.git [MRM-374] and [MRM-407] - Added hack for the webwork checkbox bug (when default value is true) in ConfigureRepositoryAction git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@566068 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java index a34c1e6d8..7e4bba999 100644 --- a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java +++ b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java @@ -85,6 +85,9 @@ public class ConfigureRepositoryAction getLogger().info( ".add()" ); this.mode = "add"; + this.repository.setReleases( true ); + this.repository.setIndexed( true ); + return INPUT; } @@ -211,6 +214,8 @@ public class ConfigureRepositoryAction if ( id == null ) { this.repository = new AdminRepositoryConfiguration(); + this.repository.setReleases( false ); + this.repository.setIndexed( false ); } RepositoryConfiguration repoconfig = archivaConfiguration.getConfiguration().findRepositoryById( id );