← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10500: minor fix in import utils

 

------------------------------------------------------------
revno: 10500
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-04-08 20:14:42 +0700
message:
  minor fix in import utils
modified:
  dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/ImportUtils.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-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/ImportUtils.java'
--- dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/ImportUtils.java	2012-06-10 16:05:59 +0000
+++ dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/ImportUtils.java	2013-04-08 13:14:42 +0000
@@ -52,11 +52,11 @@
             {
                 return identifiableObject.getName();
             }
-            else if ( identifiableObject.getUid() != null && identifiableObject.getName().length() > 0 )
+            else if ( identifiableObject.getUid() != null && identifiableObject.getUid().length() > 0 )
             {
                 return identifiableObject.getUid();
             }
-            else if ( identifiableObject.getCode() != null && identifiableObject.getName().length() > 0 )
+            else if ( identifiableObject.getCode() != null && identifiableObject.getCode().length() > 0 )
             {
                 return identifiableObject.getCode();
             }