← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18567: change isAutoGenerated for COC, should use DEFAULT_TOSTRING and not DEFAULT_NAME

 

------------------------------------------------------------
revno: 18567
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-03-10 19:41:07 +0530
message:
  change isAutoGenerated for COC, should use DEFAULT_TOSTRING and not DEFAULT_NAME
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategoryOptionCombo.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	2015-02-26 15:21:29 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategoryOptionCombo.java	2015-03-10 14:11:07 +0000
@@ -305,7 +305,7 @@
     @Override
     public boolean isAutoGenerated()
     {
-        return name != null && name.equals( DEFAULT_NAME );
+        return name != null && name.equals( DEFAULT_TOSTRING );
     }
 
     @Override