← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18056: minor fix

 

------------------------------------------------------------
revno: 18056
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-01-20 11:51:25 +0700
message:
  minor fix
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserGroup.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserGroup.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserGroup.java	2015-01-17 07:41:26 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserGroup.java	2015-01-20 04:51:25 +0000
@@ -94,16 +94,18 @@
 
     public UserGroup()
     {
+        setAutoFields();
     }
 
     public UserGroup( String name )
     {
+        this();
         this.name = name;
     }
 
     public UserGroup( String name, Set<User> members )
     {
-        this.name = name;
+        this( name );
         this.members = members;
     }
 
@@ -144,13 +146,13 @@
         managedGroups.add( group );
         group.getManagedByGroups().add( this );
     }
-    
+
     public void removeManagedGroup( UserGroup group )
     {
         managedGroups.remove( group );
         group.getManagedByGroups().remove( this );
     }
-    
+
     public void updateManagedGroups( Set<UserGroup> updates )
     {
         for ( UserGroup group : new HashSet<>( managedGroups ) )
@@ -160,13 +162,13 @@
                 removeManagedGroup( group );
             }
         }
-        
+
         for ( UserGroup group : updates )
         {
             addManagedGroup( group );
         }
     }
-    
+
     // -------------------------------------------------------------------------
     // Getters and setters
     // -------------------------------------------------------------------------