]> source.dussan.org Git - archiva.git/commitdiff
[MRM-796]
authorMaria Odea B. Ching <oching@apache.org>
Fri, 23 May 2008 07:09:02 +0000 (07:09 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Fri, 23 May 2008 07:09:02 +0000 (07:09 +0000)
applied patch submitted by John Michael Luy
-fix releases checkbox always enabled

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@659460 13f79535-47bb-0310-9956-ffa450edef68

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

index 84ae6ad5887d22c66c9ec0fc39e5a249686c4ff5..ade35bb7f63630650f408a6ee708000475ad82a6 100644 (file)
@@ -55,6 +55,11 @@ public class EditManagedRepositoryAction
         {
             repository = archivaConfiguration.getConfiguration().findManagedRepositoryById( repoid );
         }
+        else if ( repository != null )
+        {
+            repository.setReleases( false );
+            repository.setScanned( false );
+        }
     }
 
     public String input()