continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmora...@apache.org
Subject svn commit: r791346 - /continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
Date Mon, 06 Jul 2009 00:09:19 GMT
Author: jmorales
Date: Mon Jul  6 00:09:18 2009
New Revision: 791346

URL: http://svn.apache.org/viewvc?rev=791346&view=rev
Log:
merge -r 791343 form 1.3.x branch.[CONTINUUM-2228] Edit Project Group Summary Removes Local
Repository.
In select field can't select empty value but if user doesn't allowed edit repositories,  then
repositoryId = 0 and set null value.

Modified:
    continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java

Modified: continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java?rev=791346&r1=791345&r2=791346&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
(original)
+++ continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
Mon Jul  6 00:09:18 2009
@@ -483,15 +483,12 @@
 
         projectGroup.setDescription( description );
 
+        // [CONTINUUM-2228]. In select field can't select empty values.
         if ( repositoryId > 0 )
         {
             LocalRepository repository = getContinuum().getRepositoryService().getLocalRepository(
repositoryId );
             projectGroup.setLocalRepository( repository );
         }
-        else
-        {
-            projectGroup.setLocalRepository( null );
-        }
 
         getContinuum().updateProjectGroup( projectGroup );
 



Mime
View raw message