[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
This commit is contained in:
Maria Odea B. Ching 2007-08-15 08:47:14 +00:00
parent fb626a92e5
commit 58671364fc
1 changed files with 5 additions and 0 deletions

View 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 );