dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #36058
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18464: Minor fix
------------------------------------------------------------
revno: 18464
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-03-03 16:18:26 +0700
message:
Minor fix
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/common/DefaultIdentifiableObjectManager.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/common/DefaultIdentifiableObjectManager.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/common/DefaultIdentifiableObjectManager.java 2015-02-24 10:40:21 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/common/DefaultIdentifiableObjectManager.java 2015-03-03 09:18:26 +0000
@@ -781,12 +781,9 @@
{
return store.getByUid( id );
}
- else if ( IdentifiableProperty.UUID.equals( property ) )
+ else if ( IdentifiableProperty.UUID.equals( property ) && OrganisationUnit.class.isAssignableFrom( clazz ) )
{
- if ( OrganisationUnit.class.isAssignableFrom( clazz ) )
- {
- return (T) organisationUnitService.getOrganisationUnitByUuid( id );
- }
+ return (T) organisationUnitService.getOrganisationUnitByUuid( id );
}
else if ( IdentifiableProperty.CODE.equals( property ) )
{