]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1327] save changes after metadata is added / removed
authorBrett Porter <brett@apache.org>
Thu, 30 Dec 2010 01:14:52 +0000 (01:14 +0000)
committerBrett Porter <brett@apache.org>
Thu, 30 Dec 2010 01:14:52 +0000 (01:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1053779 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/ShowArtifactAction.java

index dfa486870d395aa6937c6e16734f3f6f4fd8fb8c..f2d8fa6101c29a8fe4da20768f0029cffa20c9fd 100644 (file)
@@ -363,6 +363,7 @@ public class ShowArtifactAction
             try
             {
                 updateProjectMetadata( projectMetadata, metadataRepository );
+                repositorySession.save();
             }
             catch ( MetadataRepositoryException e )
             {
@@ -415,6 +416,7 @@ public class ShowArtifactAction
                     try
                     {
                         updateProjectMetadata( projectMetadata, metadataRepository );
+                        repositorySession.save();
                     }
                     catch ( MetadataRepositoryException e )
                     {