dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #15791
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5823: Minor fix
------------------------------------------------------------
revno: 5823
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-01-30 10:49:36 +0100
message:
Minor fix
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategoryOptionCombo.java
dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementOperand.java
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-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategoryOptionCombo.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategoryOptionCombo.java 2011-12-26 10:07:59 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategoryOptionCombo.java 2012-01-30 09:49:36 +0000
@@ -249,11 +249,11 @@
{
Iterator<DataElementCategoryOption> iterator = categoryOptions.iterator();
- name.append( "(" ).append( iterator.next().getName() );
+ name.append( "(" ).append( iterator.next().getDisplayName() );
while ( iterator.hasNext() )
{
- name.append( ", " ).append( iterator.next().getName() );
+ name.append( ", " ).append( iterator.next().getDisplayName() );
}
name.append( ")" );
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementOperand.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementOperand.java 2011-12-26 10:07:59 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementOperand.java 2012-01-30 09:49:36 +0000
@@ -237,7 +237,7 @@
return dataElement.getName() + SPACE + NAME_TOTAL;
}
- return categoryOptionCombo.isDefault() ? dataElement.getName() : dataElement.getName() + SPACE + categoryOptionCombo.getName();
+ return categoryOptionCombo.isDefault() ? dataElement.getDisplayName() : dataElement.getDisplayName() + SPACE + categoryOptionCombo.getName();
}
/**
=== 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 2011-12-26 10:07:59 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/expression/DefaultExpressionService.java 2012-01-30 09:49:36 +0000
@@ -413,7 +413,7 @@
throw new IllegalArgumentException( "Identifier does not reference a constant: " + id );
}
- match = constant.getName();
+ match = constant.getDisplayName();
}
else
{