]> source.dussan.org Git - archiva.git/commitdiff
[MRM-374] and [MRM-407]
authorMaria Odea B. Ching <oching@apache.org>
Wed, 15 Aug 2007 08:47:14 +0000 (08:47 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Wed, 15 Aug 2007 08:47:14 +0000 (08:47 +0000)
- 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

archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/ConfigureRepositoryAction.java

index a34c1e6d853762619825e0dc0e073e71c285fa35..7e4bba999ff9fccd86de280e9df7828e06d12753 100644 (file)
@@ -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 );