From a6e8d6158c2c2352f159330bd136ffefa3e144ad Mon Sep 17 00:00:00 2001 From: "Maria Odea B. Ching" Date: Fri, 23 May 2008 07:09:02 +0000 Subject: [PATCH] [MRM-796] 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 --- .../admin/repositories/EditManagedRepositoryAction.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/EditManagedRepositoryAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/EditManagedRepositoryAction.java index 84ae6ad58..ade35bb7f 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/EditManagedRepositoryAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/EditManagedRepositoryAction.java @@ -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() -- 2.39.5