dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #38989
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19791: MergeWith fix
------------------------------------------------------------
revno: 19791
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-08-19 06:39:53 -0400
message:
MergeWith fix
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/CategoryOptionGroup.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/dataelement/CategoryOptionGroup.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/CategoryOptionGroup.java 2015-08-19 03:02:24 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/CategoryOptionGroup.java 2015-08-19 10:39:53 +0000
@@ -153,12 +153,12 @@
if ( strategy.isReplace() )
{
+ groupSet = categoryOptionGroup.getGroupSet();
+ }
+ else if ( strategy.isMerge() )
+ {
groupSet = categoryOptionGroup.getGroupSet() == null ? groupSet : categoryOptionGroup.getGroupSet();
}
- else if ( strategy.isMerge() )
- {
- groupSet = categoryOptionGroup.getGroupSet();
- }
members.clear();