dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #26406
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13085: Made code more debug friendly
------------------------------------------------------------
revno: 13085
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2013-12-01 17:19:14 +0100
message:
Made code more debug friendly
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/expression/DefaultExpressionService.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-services/dhis-service-core/src/main/java/org/hisp/dhis/expression/DefaultExpressionService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/expression/DefaultExpressionService.java 2013-11-06 00:03:02 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/expression/DefaultExpressionService.java 2013-12-01 16:19:14 +0000
@@ -39,6 +39,7 @@
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
+import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.regex.Matcher;
@@ -547,7 +548,11 @@
{
final StringBuilder replace = new StringBuilder( PAR_OPEN );
- for ( String coc : dataElementOptionComboMap.get( matcher.group( 1 ) ) )
+ String de = matcher.group( 1 );
+
+ List<String> cocs = dataElementOptionComboMap.get( de );
+
+ for ( String coc : cocs )
{
replace.append( EXP_OPEN ).append( matcher.group( 1 ) ).append( SEPARATOR ).append(
coc ).append( EXP_CLOSE ).append( "+" );